Find the answer to your Linux question:
Results 1 to 9 of 9
I'm using centos 5.6. I would like to... See users see user groups add permisions And thats it. The permisions should allow the user not to be able to cd ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2011
    Posts
    7

    Noob Alert!!!! How do I see my user groups in root?


    I'm using centos 5.6. I would like to...

    See users
    see user groups
    add permisions

    And thats it. The permisions should allow the user not to be able to cd .. back into the root directory.

    Thanks

    Ya I probly should of put this under red hat, but its also a noobie question.
    Last edited by codman1004; 08-30-2011 at 02:03 PM.

  2. #2
    Just Joined!
    Join Date
    Aug 2011
    Posts
    16
    Hi

    Try this for groups "cat /etc/groups".
    Try "ls -la /home/" for users.
    Check the chmod command.

    Br
    Haze

  3. #3
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    664
    system-config-users will let you see your users and their group memberships in a gui. Preventing them from doing cd .. or cd / would require putting them in a chroot jail. Changing permissions such that they couldn't traverse / would prevent them from logging in, as they would neither be able to access their home folders, nor any executables, including shells.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Aug 2011
    Posts
    7
    Ok So know how do I change the permissions for the user. Would you recamend using rbash. I'm familiar with it. Our school uses it. But they run centos 6 I believe. Whats the difference betweent centos 6 and centos 5.6?


    Thanks

  6. #5
    Linux Enthusiast
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    664
    Quote Originally Posted by codman1004 View Post
    Ok So know how do I change the permissions for the user. Would you recamend using rbash. I'm familiar with it. Our school uses it. But they run centos 6 I believe. Whats the difference betweent centos 6 and centos 5.6?


    Thanks
    centos 6 minus centos 5.6 is centos 0.4

  7. #6
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    For command functionality, CentOS 5.6 is pretty much the same as 6.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  8. #7
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    664
    Quote Originally Posted by alf55 View Post
    centos 6 minus centos 5.6 is centos 0.4
    bowrofl.gif That's funny, I don't care who you are!

  9. #8
    Linux User twoHats's Avatar
    Join Date
    Jan 2005
    Location
    NH, USA
    Posts
    280

    Sometimes you just need a laugh ...

    Quote Originally Posted by Mudgen View Post
    bowrofl.gif That's funny, I don't care who you are!
    Really! - first good laugh all day.
    - Clouds don't crash - Bertrand Meyer

    registered Linux user 393557

    finally - hw to brag about - but next year it will look pitifully quaint:
    Athlon64 X2 3800 - 1G PC3200 - 250G SATA - ati radeon x300
    circa 2006

  10. #9
    Linux User twoHats's Avatar
    Join Date
    Jan 2005
    Location
    NH, USA
    Posts
    280

    chmod

    Haze mentioned the chmod command - that is probably what you want.

    to see how to use it:

    Code:
    tom@owl ~ $ man chmod
    You probably already know that this works for nearly any Linux command.

    I would try it out on something that doesn't really matter. Maybe make a file called test and try some chmod commands on it.

    There is also chown:

    Code:
    tom@owl ~ $ man chown
    to see how that works etc ... pay attention to the "see also" at the end of each man page
    - Clouds don't crash - Bertrand Meyer

    registered Linux user 393557

    finally - hw to brag about - but next year it will look pitifully quaint:
    Athlon64 X2 3800 - 1G PC3200 - 250G SATA - ati radeon x300
    circa 2006

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •