I want to add a new user to my system (SuSE 5.2), but I don't want to use YAST to do it. How do I add a user manually? All the books seem to say that the adduser cmd is easy to use. I can't find the program. I can manually add a user to the bottom of the /etc/passwd file, but then I have a problem with the passwords, and the shadow file doesn't have an entry for them. Am I being thick, or is SuSE just different to other flavours of Linux? P.S. This is a security issue, because suse-security is the only suse group I'm subscribed to, and also because at the moment I can add a user, but not a password for a user. (I think everyone can see the security problems with that) Thanks cog -- ,------------------------------, ================| S H U N A N T I O N L I N E |================ ================'------------------------------'================ == David M. Webster ++ aka cogNiTioN ++ cognition@bigfoot.com == ================================================================ == My New Domain <cognite.net> should be up and running soon. == ================================================================ == I use Linux every day to up my productivity - so up yours! == ================================================================
Cog, you are looking for the 'useradd' command. Some systems have adduser, others have useradd, and some systems have both. Something that may help in the future -- apropos user | grep add shows only one entry -- the right one. It doesn't find all the commands, since it only searches the short description of man pages, (eg, 'man yast' turns up empty) but it is sometimes right. apropos is a nice tool. (If the name is frustrating to you, you can also use 'man -k'. :) :) The last bit -- the vacation replies -- it is up to whoever configured their vacation to make sure it doesn't respond to mailing lists. So please, if/when you go on vacation, and you want to keep archives of this and other mailing lists, maybe use procmail, which makes it obvious to be skipping mailing lists, if the mailing lists are filtered into their own mailfile, or ensure to setup vacation properly. :) On Mon, Aug 02, 1999 at 08:47:44PM +0000, cogNiTioN wrote:
I want to add a new user to my system (SuSE 5.2), but I don't want to use YAST to do it. How do I add a user manually? All the books seem to say that the adduser cmd is easy to use. I can't find the program.
I can manually add a user to the bottom of the /etc/passwd file, but then I have a problem with the passwords, and the shadow file doesn't have an entry for them.
Am I being thick, or is SuSE just different to other flavours of Linux?
P.S. This is a security issue, because suse-security is the only suse group I'm subscribed to, and also because at the moment I can add a user, but not a password for a user. (I think everyone can see the security problems with that)
Thanks
cog -- ,------------------------------, ================| S H U N A N T I O N L I N E |================ ================'------------------------------'================ == David M. Webster ++ aka cogNiTioN ++ cognition@bigfoot.com == ================================================================ == My New Domain <cognite.net> should be up and running soon. == ================================================================ == I use Linux every day to up my productivity - so up yours! == ================================================================
-- To unsubscribe, e-mail: suse-security-unsubscribe@suse.com For additional commands, e-mail: suse-security-help@suse.com
-- Seth Arnold | ICQ 3172483 | http://cswww.willamette.edu/~sarnold/ I prosecute unsolicited bulk emails, using the RealTime BlackHole List. You should too. Ask me how, or visit http://maps.vix.com/rbl/
Am 02-Aug-99 toeggelte cogNiTioN:
I want to add a new user to my system (SuSE 5.2), but I don't want to use YAST to do it. How do I add a user manually? All the books seem to say that the adduser cmd is easy to use. I can't find the program.
I can manually add a user to the bottom of the /etc/passwd file, but then I have a problem with the passwords, and the shadow file doesn't have an entry for them.
You can use useradd , or if you want do it completly by hand, add an entry to /etc/shadow also. But be aware this is a risk, if someone change the password, while you are adding a user to shadow, the new password of the other user may be lost. The same risk applies to passwd, if a user changes his shell, or his gecos- field. So I recommend to use useradd. ----------------------------------------------------------------------- Daniel Etter | http://www.etter.ch/~daniel | Tel. : +41 1 884 75 01 Ringstrasse 2 | | Fax : +41 1 884 62 50 8107 Buchs ZH | mailto:Daniel.Etter@etter.ch | Natel: +41 79 354 93 75
Hello cog!
I want to add a new user to my system (SuSE 5.2), but I don't want to use YAST to do it. How do I add a user manually? All the books seem to say that the adduser cmd is easy to use. I can't find the program. Simply use useradd. If you call it without any args, it will display a short help. Afterwards type 'passwd <username>' to set a password for the new user.
If you have many users, you might think of writing a script. But always remember: passwords MAY NOT handled as parameters for programs!!! But don't ask me if Yast will like that. Only for the possibility that you'll use one day Yast again to add users. But I think it should be able to manage that.
P.S. This is a security issue, because suse-security is the only suse group I'm subscribed to, and also because at the moment I can add a user, but not a password for a user. (I think everyone can see the security problems with that) Well seen this way, it's really one! ;-) And also: Adding users ist an important job. If you don't do it correctly, this can als be a security hole.
Bye, Jan -- +-------------------+--------------------------------------------------------+ | Jan Theofel | rst Unternehmensberatungs- und Handelsgesellschaft mbH | | Webadministrator | Bahnhofstrasse 35, 71272 Renningen | | | Tel.: 07159/800-450 Fax: 07159/800-451 | +-------------------+--------------------------------------------------------+
On Mon, 2 Aug 1999, Jan Theofel wrote:
useradd
Thanks to everyone who pointed out this command. (and I thought _Linux in a NUTSHELL_ had all the answers!) cog -- ,------------------------------, ================| S H U N A N T I O N L I N E |================ ================'------------------------------'================ == David M. Webster ++ aka cogNiTioN ++ cognition@bigfoot.com == ================================================================ == My New Domain <cognite.net> should be up and running soon. == ================================================================ == I use Linux every day to up my productivity - so up yours! == ================================================================
Hi cog...., try 'useradd' :-) but before better check out 'man useradd'... rgds. Frank -----Urspr|ngliche Nachricht----- Von: cogNiTioN <cognition@bigfoot.com> An: <suse-security@suse.com> Gesendet: Montag, 2. August 1999 22:47 Betreff: [suse-security] New users, how?
I want to add a new user to my system (SuSE 5.2), but I don't want to use YAST to do it. How do I add a user manually? All the books seem to say that the adduser cmd is easy to use. I can't find the program.
I can manually add a user to the bottom of the /etc/passwd file, but then I have a problem with the passwords, and the shadow file doesn't have an entry for them.
Am I being thick, or is SuSE just different to other flavours of Linux?
P.S. This is a security issue, because suse-security is the only suse group I'm subscribed to, and also because at the moment I can add a user, but not a password for a user. (I think everyone can see the security problems with that)
Thanks
cog -- ,------------------------------, ================| S H U N A N T I O N L I N E |================ ================'------------------------------'================ == David M. Webster ++ aka cogNiTioN ++ cognition@bigfoot.com == ================================================================ == My New Domain <cognite.net> should be up and running soon. == ================================================================ == I use Linux every day to up my productivity - so up yours! == ================================================================
-- To unsubscribe, e-mail: suse-security-unsubscribe@suse.com For additional commands, e-mail: suse-security-help@suse.com
participants (5)
-
cogNiTioN
-
Daniel Etter
-
Frank Krüger
-
Jan Theofel
-
Seth R Arnold