如何设置linux系统账户权限可读写

如,在Linux操作系统中开启FTP服务器,要建立一个abc账号,而且要设置这个账户的权限为可读可写,实现上传下载功能。这要该这么设置呢??这个账户为指定账户,相当于FT... 如,在Linux操作系统中开启FTP服务器,要建立一个abc账号,而且要设置这个账户的权限为可读可写,实现上传下载功能。
这要该这么设置呢??
这个账户为指定账户,相当于FTP只允许它来访问,别的账户不行访问。
展开
 我来答
公如冰7Q
2010-01-31 · TA获得超过421个赞
知道小有建树答主
回答量:338
采纳率:0%
帮助的人:219万
展开全部
默认的是权限是777可读可写可执行。

你可以改一下配置文件
FTP服务启动后,文件/etc/ftpusers中配置的用户是不允许使用FTP服务的,如果需要使用,请将该用户名前加“#”取消限制。你说的ABC可以用,别的不能用,那么就在ABC这个账号前加个#就OK了
快又稳
2024-10-28 广告
Apache基于域名的虚拟主机配置主要涉及到在Apache配置文件中为不同域名指定不同的网站目录和日志路径。配置时,需确保域名已正确指向服务器的IP地址。在Apache的`httpd-vhosts.conf`或类似配置文件中,为每个域名创建... 点击进入详情页
本回答由快又稳提供
yjx_xiaoxin
2010-01-28 · TA获得超过6702个赞
知道大有可为答主
回答量:4618
采纳率:50%
帮助的人:2481万
展开全部
默认情况下,你建立一个abc账户,这个账户登录FTP服务的时候进入的目录就是自己的宿主目录,读写权限都是有的。
另外,要进行配置的话,也要看你的FTP服务器是哪一个版本。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
beyondwolf
2010-02-10 · TA获得超过197个赞
知道小有建树答主
回答量:290
采纳率:0%
帮助的人:263万
展开全部
[root@localhost vsftpd]# cat vsftpd.conf
# Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that turning on ascii_download_enable enables malicious remote parties
# to consume your I/O resources, by issuing the command "SIZE /big/file" in
# ASCII mode.
# These ASCII options are split into upload and download because you may wish
# to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),
# without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be
# on the client anyway..
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES

pam_service_name=vsftpd
userlist_enable=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES

直接就可以了 在登录后右键 logas 你创建的账户 密码
有读写权限东西就放在这个账户的宿主目录中
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
badeager
2010-01-29 · TA获得超过290个赞
知道小有建树答主
回答量:720
采纳率:0%
帮助的人:598万
展开全部
只能针对文件进行权限操作,而不是用户
如果默认的话,就应该可以直接支持的。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
齐鲁冰雨
2010-01-28 · TA获得超过202个赞
知道小有建树答主
回答量:354
采纳率:0%
帮助的人:290万
展开全部
请仔细查看VSFTP的安装配置说明,这个问题一两句话说不清楚,都可以成一本薄书了。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 1条折叠回答
收起 更多回答(3)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式