Re: Users

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Jason Todd Slack-Moehrle wrote:
> Hi All,
>
> I am confused about users. IIRC, ftp users are just ordinary users on
> the system (/etc/passwd)
>
> Is there an add user wizard from the command-line?

Quick way is typically:
adduser <username>
passwd <username>

> I dont quite get all of the steps to add a user, dont let login except
> FTP, etc, etc

Here I would run:
chsh <username>

and set it to something like /sbin/nologin or /dev/null, this will
prevent someone logging in through ssh/telnet etc. Some ftp servers
will also prevent you from logging in as well, depends on their
config. Debian Linux's 'adduser' command is more wizard like, I'm
not aware of anything myself on the CentOS side that is similar:


vmware2:~# adduser testme
Adding user `testme' ...
Adding new group `testme' (1002) ...
Adding new user `testme' (1002) with group `testme' ...
Creating home directory `/home/testme' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for testme
Enter the new value, or press ENTER for the default
	Full Name []: test account
	Room Number []:
	Work Phone []:
	Home Phone []:
	Other []:
Is the information correct? [Y/n] y

Similar to add a user to a group: adduser <username> <groupname>

Which is pretty easy, I think in CentOS/RHEL the main way to do this
is using the 'usermod' command(I usually just edit the group file
by hand..)

Or you could use a ftp server that maintains it's own user database,
I think servers like proftpd and pureftpd have the ability to use
an external dedicated user database and not rely upon system
authentication. It depends on what you need the ftp server for, if
the users are uploading content for a web server or something or
if it's just for basic file storage.

nate


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux