hi Mikkel,
Thanks...
even, I changed the following line in /etc/passwd file,
gary:x:500:0:Gary Tay:/home/gary:/bin/bash
but I still can't run some program that root can run, for eg. linuxconf
or tail /var/log/maillog.... it will prompt me as permission denied...
so, I followed yrs steps to change it as
gary:x:0:0:Gary Tay:/home/gary:/bin/bash
once I change it, I can't telnet in with this account, even I did update
the account password, but still login failed.... then changed the
following in /etc/group
from "gary:x:500:root" to "gary:x:0:root"
but still the same??? anything else that I need to change in order to
give the root permission to user without doing "su -" and how can I give
certain root's permission to user? like user1 can do normal admin work
but can't reboot /shutdown server... so called admin work distribution...
Thanks for all advise....
rdgs,
gary
Mikkel L. Ellertson wrote:
> On Fri, 23 Mar 2001, garyumc wrote:
>
>> Dear all,
>>
>> How to assign different right to user? as I tried to change the GID @
>> /etc/passwd for a user as below:
>>
>> from
>> gary:x:500:500:Gary Tay:/home/gary:/bin/bash
>>
>> to
>> gary:x:500:0:Gary Tay:/home/gary:/bin/bash
>>
>> Hope can get root permission, without doing su -, but once I login with
>> gary, it doesn't have root's right??? or shd I change in /etc/group???
>>
>> Any idea? please advise....
>>
>> Thanks.......
>> gary
>>
>>
> What you did was set gary's default group to root. This will allow him
> to run programs that belong to the root group, and are group executable,
> but he will still be running them as user #500 (gary) instead of user #0
> (root) that you apear to want. The only way to give gary full root
> access without doing "su -" is to change his user and group numbers to
> 0. "gary:x:0:0:Gary Tay:/home/gary:/bin/bash" Then he will in fact be
> an alias for root. For most (but not all) programs, only the UID and
> GID number matter, not the names. The exceptions are a few scripts out
> there that check the USER shell varable.
>
> Mikkel
> --
>
> Do not meddle in the affairs of dragons,
> for you are crunchy and taste good with ketchup.
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
>
>
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list