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