Thread View: comp.unix.admin
3 messages
3 total messages
Started by Matthew J. Salerno
Fri, 10 Mar 2000 00:00
Unable to use Useradd due to UID error - Please help
Author: Matthew J. Salerno
Date: Fri, 10 Mar 2000 00:00
Date: Fri, 10 Mar 2000 00:00
10 lines
1609 bytes
1609 bytes
Please let me know how I can get useradd to work. Every time I attemt to add a new user I get the following error : UX: useradd: ERROR: uid 100 is already in use. Choose another. I know that there are other ways to add users, but all of my scripts use useradd. Please help. Thanks, Matt
Re: Unable to use Useradd due to UID error - Please help
Author: alowance
Date: Fri, 10 Mar 2000 00:00
Date: Fri, 10 Mar 2000 00:00
26 lines
1869 bytes
1869 bytes
It sounds like you are trying to assign a UID that is already taken. You need to grep for UID 100 in your passwd file or ypmatch it in passwd.byuid if you are using NIS. This will return who is assigned the UID 100. If you want to use useradd and assign a different UID use the -u flag. However, it should assign a number not already in use. Hope this helps. In article <vO8y4.51708$Pa1.1325518@news6.giganews.com>, "Matthew J. Salerno" <Msalerno@tengines.com> wrote: > Please let me know how I can get useradd to work. Every time I attemt to > add a new user I get the following error : > UX: useradd: ERROR: uid 100 is already in use. Choose another. > > I know that there are other ways to add users, but all of my scripts use > useradd. Please help. > > Thanks, > > Matt > > Sent via Deja.com http://www.deja.com/ Before you buy.
Re: Unable to use Useradd due to UID error - Please help
Author: Philip Brown
Date: Fri, 10 Mar 2000 00:00
Date: Fri, 10 Mar 2000 00:00
26 lines
2105 bytes
2105 bytes
On Fri, 10 Mar 2000 17:12:36 GMT, alowance@my-deja.com wrote: >It sounds like you are trying to assign a UID that is already taken. >You need to grep for UID 100 in your passwd file or ypmatch it in >passwd.byuid if you are using NIS. This will return who is assigned the >UID 100. If you want to use useradd and assign a different UID use >the -u flag. However, it should assign a number not already in use. >Hope this helps. no, the original poster is just trying to use the defaults. But useradd is not giving the appropriate error message. I hit this when I "tighten up" permissions on some firewall boxes. useradd no longer works, unless you manually specify the UID with -u. probably becuase useradd is using some interesting getxxxxent calls that I dont remember right now, and needs somewhat lax permissions in places to dothis. Similar to "pkgadd wont run if user nobody does not have permission to write to... [?]" -- [Trim the no-bots from my address to reply to me by email!] [ Do NOT email-CC me on posts. Pick one or the other.] S.1618 http://thomas.loc.gov/cgi-bin/bdquery/z?d105:SN01618:@@@D The word of the day is mispergitude
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads