Re: [gentoo-user] addusr (gentoo v. fedora)
On Tue, 21 Mar 2006 18:36:06 -0500, Erik Westenbroek wrote: > or, we can just do it the easy way: > useradd -d /home/user_name user_name. Except that still doesn't create the directory, which is what the OP wanted. In fact, the -d option is superfluous here, since /home/user_name is the default. You need -m to create the directory, whether -d is used or not. -- Neil Bothwick Do I BELIEVE in the Bible?! HELL man, I've SEEN one!!! signature.asc Description: PGP signature
Re: [gentoo-user] addusr (gentoo v. fedora)
On Mar 21, 2006, at 3:42 PM, Nick Rout wrote: On Tue, 21 Mar 2006 20:32:42 + THUFIR HAWAT wrote: On 3/21/06, John Jolet <[EMAIL PROTECTED]> wrote: .. if you add the -m argument to useradd, it will create the directory and own it by the user being added. .. Ah, thanks all for responding :) -Thufir Big tip of the day: emerge superadduser then utilise superadduser instead of adduser ah, hadn't heard of that one. on the other handuseradd -m works on solarisaixopenbsdredhatgentooetc, etc. you see my point. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] addusr (gentoo v. fedora)
or, we can just do it the easy way: useradd -d /home/user_name user_name. On 3/21/06, Nick Rout <[EMAIL PROTECTED]> wrote: > > On Tue, 21 Mar 2006 20:32:42 + > THUFIR HAWAT wrote: > > > On 3/21/06, John Jolet <[EMAIL PROTECTED]> wrote: > > .. > > > if you add the -m argument to useradd, it will create the directory > > > and own it by the user being added. > > .. > > > > Ah, thanks all for responding :) > > > > > > -Thufir > > Big tip of the day: > > emerge superadduser > > then utilise superadduser instead of adduser > > > > > > > -- > > gentoo-user@gentoo.org mailing list > > -- > Nick Rout <[EMAIL PROTECTED]> > > -- > gentoo-user@gentoo.org mailing list > > -- Erik http://erikstotle.homelinux.org/ -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] addusr (gentoo v. fedora)
On Tue, 21 Mar 2006 20:32:42 + THUFIR HAWAT wrote: > On 3/21/06, John Jolet <[EMAIL PROTECTED]> wrote: > .. > > if you add the -m argument to useradd, it will create the directory > > and own it by the user being added. > .. > > Ah, thanks all for responding :) > > > -Thufir Big tip of the day: emerge superadduser then utilise superadduser instead of adduser > > -- > gentoo-user@gentoo.org mailing list -- Nick Rout <[EMAIL PROTECTED]> -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] addusr (gentoo v. fedora)
On 3/21/06, John Jolet <[EMAIL PROTECTED]> wrote: .. > if you add the -m argument to useradd, it will create the directory > and own it by the user being added. .. Ah, thanks all for responding :) -Thufir -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] addusr (gentoo v. fedora)
El Tue, 21 Mar 2006 16:10:45 + THUFIR HAWAT dijo: > Pardon, but I'm not clear on this command, apparently. Coming from > fedora, I could just create a user, change the password, login, and > everything would be set. However, gentoo doesn't create > /home/user_name ? No problem, I created that directory. However, > "startx" as that user gives errors. I can capture those errors, but > apparently I'm going about this the wrong way. ? Probably your home doesn't belong to you, or has very restrictive permission. > I also tried creating a user from gnome but ran into the same problem. I do not use gnome... :-( > thanks, > Thufir HTH -- Arnau Bria http://blog.emergetux.net Por regla general, las chicas malas suelen ser las que están más buenas. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] addusr (gentoo v. fedora)
On Mar 21, 2006, at 10:10 AM, THUFIR HAWAT wrote: Pardon, but I'm not clear on this command, apparently. Coming from fedora, I could just create a user, change the password, login, and everything would be set. However, gentoo doesn't create /home/user_name ? No problem, I created that directory. However, "startx" as that user gives errors. I can capture those errors, but apparently I'm going about this the wrong way. ? I also tried creating a user from gnome but ran into the same problem. Right now I'm running as root :( thanks, Thufir -- gentoo-user@gentoo.org mailing list if you add the -m argument to useradd, it will create the directory and own it by the user being added. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] addusr (gentoo v. fedora)
On Tue, 21 Mar 2006 16:10:45 +, THUFIR HAWAT wrote: > Pardon, but I'm not clear on this command, apparently. Coming from > fedora, I could just create a user, change the password, login, and > everything would be set. However, gentoo doesn't create > /home/user_name ? Use the -m/--create-home option. > No problem, I created that directory. However, > "startx" as that user gives errors. Did you create the directory as root? If so, did you do "chown user: ~user" afterwards? If not, the user would not be able to write to the home directory, resulting in the errors you describe. -- Neil Bothwick Things are more like they are now than they ever were before. signature.asc Description: PGP signature
[gentoo-user] addusr (gentoo v. fedora)
Pardon, but I'm not clear on this command, apparently. Coming from fedora, I could just create a user, change the password, login, and everything would be set. However, gentoo doesn't create /home/user_name ? No problem, I created that directory. However, "startx" as that user gives errors. I can capture those errors, but apparently I'm going about this the wrong way. ? I also tried creating a user from gnome but ran into the same problem. Right now I'm running as root :( thanks, Thufir -- gentoo-user@gentoo.org mailing list