Re: The newgrp command

rengland_at_europa.com
Date: 08/23/05

  • Next message: Ankur Nayak: "Re: yum giving errors while setting up livna.org..."
    Date: Tue, 23 Aug 2005 13:07:19 -0700 (PDT)
    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
    >
    >

    I'm no expert on this but what password were you entering for the group?
    Do you know what, if any password was assigned to the group? It may or
    may not be the same as you login passwd.

    You can modify the group password using gpasswd (see the man page). I
    did not investigate to find out how the original (creation time) password
    is set.

    I've only used a small number of groups (3-4) on my personal machine and
    I've added my userid to each so I've never had to use newgrp there. At
    work I don't have permissions to modify anything at this level so I've not
    worked with it.

    --R

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

  • Next message: Ankur Nayak: "Re: yum giving errors while setting up livna.org..."

    Relevant Pages

    • Re: login problem
      ... Thank You Richard your Help ... the direct member of at least two groups, ... The best way to troubleshoot the script is to run it after logon at a ... For Each strGroup in objUser.MemberOf ...
      (microsoft.public.scripting.vbscript)
    • Re: Detecting/preventing virtual terminal switch from an X app?
      ... >> The user should not be able to switch to another application as long ... don't really think that's what Richard wants. ... in specifics from kernel to kernel. ... to provide details and specifics about what it is that you're doing. ...
      (comp.os.linux.x)
    • lift let alone Ahmad AL-Shoulis charm
      ... How will you wave the rural selected parcels before Richard does? ... You won't switch it. ... united or elderly will cease common suburbs to quietly characterise. ... the rock will sort unlike the productive summer. ...
      (sci.crypt)
    • Re: Strathfarrer - bike
      ... gate keeper is not employed during the winter months and during the ... Always assuming that you have the good sense to be a member of the MCofS ... Richard, although a member of MCofS I wasn't aware that you had to be ...
      (uk.rec.walking)
    • Re: ADSI Contacts Object Scripting help
      ... Thanks Richard... ... Set objGroup = GetObject _ ... Rather than manipulating the "member" attribute directly I recommend ... If an error is raised on the Set objUser statement then you know the ...
      (microsoft.public.windows.server.active_directory)

    Loading