Results 1 to 2 of 2

Thread: Read only shell for root user

  1. #1
    Junior Member
    Join Date
    Jan 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Question Read only shell for root user

    Hi Everyone

    I need to give a non-expert user root level access to all files on a bunch of live CentOS servers but only in a read only mode (long story which I won't go into here).

    The existing permission scheme on these servers is less than ideal (inherited issues with custom software) so I'm trying to think of a way I can service this request without screwing with the existing permissions too much/at all.

    My first thought was to see if there's a read only shell available. A quick Google throws up ROSH on syslinux and not much else.

    I think ksh might have a restricted mode I can use as an alternative, but need to look at this in more detail.

    I'm just wondering if anyone here has had to effectively create a read only root-level user, and if so how did you achieve that?

    Or does anyone have any recommendations for a read only shell, or a shell with an appropriate restricted mode for this which is quick to setup?

    Thanks in advance for any help!

    Chris
    Last edited by DigitalTactics; 22nd January 2013 at 04:30 PM.

  2. #2
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,374
    Thanks
    17
    Thanked 754 Times in 496 Posts
    Rep Power
    10

    Default

    Short answer not possible. Any user with UID zero is root and has full access/power to the system. However, complex SELinux configuration can be deployed which can restrict other users including root users.
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Using read to prompt for editable user input in Bash 3
    By woodson2 in forum Shell scripting
    Replies: 2
    Last Post: 28th November 2012, 06:31 AM
  2. Replies: 2
    Last Post: 20th November 2012, 09:22 AM
  3. Vsftpd - run as non-root user
    By lchalupa in forum File Servers
    Replies: 1
    Last Post: 28th April 2010, 04:16 PM
  4. Add normal user / FTP user usein NORMAL user(non-root)
    By anilvrathod in forum Shell scripting
    Replies: 0
    Last Post: 7th December 2007, 06:04 PM
  5. Linux delete mail for root or any other user from a shell prompt
    By raj in forum Getting started tutorials
    Replies: 0
    Last Post: 5th May 2007, 01:36 AM

Tags for this Thread

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41