mbosco
asked on
vsFTPd
Let me Start by saying Im very new to linux I was hosting a FTP server in Windows using
3rd party software (Ability Server) also has SMTP,HTTP servers. Now I would like to let my
Linux box host these services. So one server at a time Starting with FTP.
I have the anonymous option working and the Accunts on my local box to work now I need
to have a user that does not have a local login to be able to accss the server .
I'm running RedHat 9 with vsFTPd
What I need is
say a username of: username
when they log in I want them to go to /var/somefolder
how do I create a user that can not log on localy but can on ftp ?
will they then have access to a shell ?
and has the home of /var/somefolder
3rd party software (Ability Server) also has SMTP,HTTP servers. Now I would like to let my
Linux box host these services. So one server at a time Starting with FTP.
I have the anonymous option working and the Accunts on my local box to work now I need
to have a user that does not have a local login to be able to accss the server .
I'm running RedHat 9 with vsFTPd
What I need is
say a username of: username
when they log in I want them to go to /var/somefolder
how do I create a user that can not log on localy but can on ftp ?
will they then have access to a shell ?
and has the home of /var/somefolder
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I have had success in adding users this way:
useradd -g somegroup -d /home/username -s /bin/false username
This will create the user's home directory but not allow them to actually login to a shell. The -s /bin/false can vary depending on the flavor of linux you are using. In fact, for RedHat I fairly certain you can use /bin/false or /sbin/nologin.
Hope that helps :)
Paul
useradd -g somegroup -d /home/username -s /bin/false username
This will create the user's home directory but not allow them to actually login to a shell. The -s /bin/false can vary depending on the flavor of linux you are using. In fact, for RedHat I fairly certain you can use /bin/false or /sbin/nologin.
Hope that helps :)
Paul
ASKER