Create user account from putty (Newbie)



Hi all, I'm a Linux newbie and I would like to be able to
programatically create a new user account on my VPS.

I'm running CentOs as the operating system and I would like to be able
to create the new account via putty as well as do the following:

Add a new user and specify the users password (The home directory for
this user should also get created). Also, when the account is created
copy over some files from a specified directory and place them in the
newly created home directory.

I have looked on the Internet but I'm a bit confused with all the
flags which are needed and I do not want to do a trial an error
approach. So if someone could please give me an example on how I can
do the above it would be appreciated

Thanks
Catherine

.



Relevant Pages

  • Re: SAMBA and XP
    ... I use Samba to access shares from network 'nix boxes from ... In Windows, when you're a member of a Domain, you sent your authentication ... the home directory and drive mapping, ... and give it the same name and password as the account they ...
    (RedHat)
  • Re: Leopard: Advanced Options in Accounts not ready for prime time?
    ... When I created a regular user account I went back in to Advanced Options and changed the home directory for that user from /Users/ethant to /Volumes/Home/ethant. ... I'd expect that to create my basic account user in /Volumes/Home/ethant upon first login. ...
    (comp.sys.mac.system)
  • Re: Copying over a user account #2
    ... >>> The user now has permissions for all its own files, ... The desktop layout is in the home directory, at least on 10.4, so I do not ... never tried more than one account under 10.3, ... > difference -- I dragged the home directory over from the iBook to the G4 ...
    (comp.sys.mac.system)
  • Re: unpriviledge user to run a program
    ... Yes, least privilege, not "less than necessary privilege". ... having a special account associated with a network service opened up ... problem setting up a special home directory for each daemon ... To be honest, I don't use IRC. ...
    (comp.unix.shell)
  • Questions about system vs. user accounts...
    ... The problem I'm having is that I'll create a jabber account ... However...when I check the mysql user account that the RH9 rpms create, ... it has a bash shell and home directory of /var/lib/mysql...yet when I ... look in it's home directory there's no .bashrc. ...
    (RedHat)