[CoLoCo] can't add user - path exists

Jim Hutchinson jim at ubuntu-rocks.org
Sun Mar 23 06:39:06 GMT 2008


On Sat, Mar 22, 2008 at 9:55 PM, Scott Scriven <ubuntu-us-co at toykeeper.net>
wrote:

> * Jim Hutchinson <jim at ubuntu-rocks.org> wrote:
> > So if I have a path like
> >
> > /home/jim
> >
> > and I want to make a new user "jim" how do I get around the
> > error and have it use the same path?
>
> Something like this should work...
>
>  % ls -l /home
>  ...
>  drwxr-xr-x  2  1007     1007   92 Aug  5  2007 jim/
>  ...
>  % sudo adduser --uid 1007 --gid 1007 --no-create-home jim
>  ...
>  %
>
> Then again, I think adduser might work without the option for
> home.  Just be sure to specify the same uid/gid as your existing
> data, to make sure the user has access to their files.
>
>
Thanks. That worked but I had to drop the gid bit. It gave an error about
the group id not existing. I also didn't need the no-create line.

Thanks again,
-jim
-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-us-co/attachments/20080323/0568f546/attachment.htm 


More information about the Ubuntu-us-co mailing list