Re: The newgrp command

From: Vidol Loeung (fedora.kh_at_undp.org)
Date: 08/23/05

  • Next message: orel: "Re: DVD Writing"
    Date: Tue, 23 Aug 2005 18:10:46 +0700
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    Thank you Ben and Richard for yoru replies.

    Well, Ben you are right, root can switch to any group without having to give
    a password. I also discovered the same as what Richard said. However, in
    case an ordinary user is not a member of a particular group and she/he tries
    to use the newgrp command to switch to that group with correct password, it
    always gave the error message: Permission denied.

    Read a lot of docs on it but still could not help.

    Regards,
    Vidol

    ----- Original Message -----
    From: "Richard England" <rengland@europa.com>
    To: "For users of Fedora Core releases" <fedora-list@redhat.com>
    Sent: Tuesday, August 23, 2005 1:06 PM
    Subject: Re: The newgrp command

    >
    > Ben Stringer wrote:
    >
    > >On Tue, 2005-08-23 at 12:17 +0700, Vidol Loeung wrote:
    > >
    > >
    > >>Dear All:
    > >>
    > >>The newgrp command seems simple to use. However, I could not use it or I
    did
    > >>not know how to use it.
    > >>
    > >>Could someone please explain me what teh problem is? I was logged in as
    an
    > >>ordinary user and type the command:
    > >>$ newgrp users
    > >>It asked me for the group password and I entered it but it said:
    "Permission
    > >>denied".
    > >>
    > >>
    > >
    > >Hi Vidol,
    > >
    > >You will need to be the root user to run this command.
    > >
    > >Try this:
    > >
    > >$ su -
    > ># newgrp users
    > >
    > >Cheers, Ben
    > >
    > >
    > >
    > >>Regards,
    > >>Vidol
    > >>
    > >>
    > >>
    > I don't believe that is strictly true. If the userid is included in
    > several groups, all the user has to do is type in "newgrp <newgrpname>".
    > However, if the user is NOT member of the group, then they are prompted
    > for the group password.
    >
    > Use the command "id" to find out what your primary group currently is,
    > and the command "groups" to find out what groups your userid is
    > currently a member of.
    >
    > --R
    >
    > --
    > fedora-list mailing list
    > fedora-list@redhat.com
    > To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: orel: "Re: DVD Writing"

    Relevant Pages

    • Re: switching bsdlabels label
      ... reason someone labelled root as 'd' and home as 'a'. ... bsdlabel -n da0s1> savedabel.txt ... partitions or if it is just that the partitions are mounted backwards ... You could switch it around using bsdlabel, but I don't think the risk would be worth the negligible gain. ...
      (freebsd-questions)
    • Re: switching bsdlabels label
      ... reason someone labelled root as 'd' and home as 'a'. ... bsdlabel -n da0s1> savedabel.txt ... partitions or if it is just that the partitions are mounted backwards ... You could switch it around using bsdlabel, but I don't think the risk would be worth the negligible gain. ...
      (freebsd-stable)
    • Re: Question for Spanning tree experts
      ... I'm trying to understand the importance of "root switch". ... > be working and I'm stumped why we didn't see any network slowness. ... > good way to learn more about spanning tree. ...
      (comp.dcom.sys.cisco)
    • Re: The newgrp command
      ... I also discovered the same as what Richard said. ... > to use the newgrp command to switch to that group with correct password, ... >> However, if the user is NOT member of the group, then they are prompted ... You can modify the group password using gpasswd. ...
      (Fedora)
    • Re: A PE resource directory -- difficulty in understanding it ...
      ... nowhere there is mentioned that those four levels (root, ... name/ID, language-split, data) are the required and/or the only ones. ... it allowed for the root to directly point to the data (a leaf node)? ... in the info I found the "OffsetToData" member of the ...
      (microsoft.public.win32.programmer.kernel)