PDA

View Full Version : usermod command


AG
2003-09-23, 04:35 PM CDT
I need help with the exact syntax for the usermod command. Our billing
program failed to properly create a user on the mail server and I used the
useradd command to put him in but he's in the wrong group right now. He
needs to be in the users group which is 100.
I've looked at my books but they don't really give a clear example of the
way to input this command.
Thanks.
AG

Paul Lutus
2003-09-23, 06:50 PM CDT
AG wrote:

> I need help with the exact syntax for the usermod command. Our billing
> program failed to properly create a user on the mail server and I used the
> useradd command to put him in but he's in the wrong group right now. He
> needs to be in the users group which is 100.
> I've looked at my books but they don't really give a clear example of the
> way to input this command.

Had you considered reading the man page?

$ man usermod

# usermod -g (group) username

But read it for yourself, don't take my word for it.

--
Paul Lutus
http://www.arachnoid.com

AG
2003-09-25, 12:50 PM CDT
"Paul Lutus" <nospam@nosite.zzz> wrote in message
news:vn1qijdqme3335@corp.supernews.com...
> AG wrote:
>
> > I need help with the exact syntax for the usermod command. Our billing
> > program failed to properly create a user on the mail server and I used
the
> > useradd command to put him in but he's in the wrong group right now. He
> > needs to be in the users group which is 100.
> > I've looked at my books but they don't really give a clear example of
the
> > way to input this command.
>
> Had you considered reading the man page?
>
> $ man usermod
>
> # usermod -g (group) username
>
> But read it for yourself, don't take my word for it.
>
> --
> Paul Lutus
> http://www.arachnoid.com
>
Been there. Don't understand what the pages say. Perhaps too dumb but I'm
still having trouble.
AG

Paul Lutus
2003-09-25, 01:11 PM CDT
AG wrote:

>
> "Paul Lutus" <nospam@nosite.zzz> wrote in message
> news:vn1qijdqme3335@corp.supernews.com...
>> AG wrote:
>>
>> > I need help with the exact syntax for the usermod command. Our billing
>> > program failed to properly create a user on the mail server and I used
> the
>> > useradd command to put him in but he's in the wrong group right now.
>> > He needs to be in the users group which is 100.
>> > I've looked at my books but they don't really give a clear example of
> the
>> > way to input this command.
>>
>> Had you considered reading the man page?
>>
>> $ man usermod
>>
>> # usermod -g (group) username
>>
>> But read it for yourself, don't take my word for it.
>>
>> --
>> Paul Lutus
>> http://www.arachnoid.com
>>
> Been there. Don't understand what the pages say.

If this is true, then perhaps you need to hire someone to administer your
system. If, after reading the instructions for usermod, you really can't
see how to proceed, then by all means don't just start issuing commands as
root.

Again:

# usermod -g (group) username

> Perhaps too dumb but
> I'm still having trouble.

What you are having trouble doing is telling us what you tried and what
happened when you did. Specifically, with the actual typing included.

--
Paul Lutus
http://www.arachnoid.com

AG
2003-09-25, 04:30 PM CDT
"Paul Lutus" <nospam@nosite.zzz> wrote in message
news:vn6ffl7s360i4c@corp.supernews.com...
> AG wrote:
>
> >
> > "Paul Lutus" <nospam@nosite.zzz> wrote in message
> > news:vn1qijdqme3335@corp.supernews.com...
> >> AG wrote:
> >>
> >> > I need help with the exact syntax for the usermod command. Our
billing
> >> > program failed to properly create a user on the mail server and I
used
> > the
> >> > useradd command to put him in but he's in the wrong group right now.
> >> > He needs to be in the users group which is 100.
> >> > I've looked at my books but they don't really give a clear example of
> > the
> >> > way to input this command.
> >>
> >> Had you considered reading the man page?
> >>
> >> $ man usermod
> >>
> >> # usermod -g (group) username
> >>
> >> But read it for yourself, don't take my word for it.
> >>
> >> --
> >> Paul Lutus
> >> http://www.arachnoid.com
> >>
> > Been there. Don't understand what the pages say.
>
> If this is true, then perhaps you need to hire someone to administer your
> system. If, after reading the instructions for usermod, you really can't
> see how to proceed, then by all means don't just start issuing commands as
> root.
>
> Again:
>
> # usermod -g (group) username
>
> > Perhaps too dumb but
> > I'm still having trouble.
>
> What you are having trouble doing is telling us what you tried and what
> happened when you did. Specifically, with the actual typing included.
>
> --
> Paul Lutus
> http://www.arachnoid.com
>
Thanks that does it.
AG