Find the answer to your Linux question:
Results 1 to 5 of 5
I have a server hosting about 50 domains. Each domain is owned by a user, and each user has an own group, for example: Code: drwx--x--x 9 reklamsk reklamsk 4096 ...
  1. #1
    Just Joined!
    Join Date
    Apr 2007
    Posts
    2

    Stop using root, want to add a new main account

    I have a server hosting about 50 domains. Each domain is owned by a user, and each user has an own group, for example:

    Code:
    drwx--x--x    9 reklamsk      reklamsk         4096 Apr 24 12:06 reklamsk/
    Today I'm logging in with root to make it easy to switch between the different users (they are all mine), but it doesn't feel good. I want to add a new user, that has permission to access all home dirs.

    How do I do that?

    The server is being administrated with cPanel.

  2. #2
    Linux User DOllaBillz217's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    263
    I'd guess you could create a new user and just give him the proper permissions or make him have sole ownership (chown). Not positive, but it seems like it'd make sense
    $Billz

    How much wood would a wood chuck chuck if a wood chuck could chuck wood? None they eat plants!

    Dell Optiplex GX260, LTSP Diskless Workstation, Fedora Core 6

  3. #3
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    1. If you had less restrictive group permissions, you could add the new user to all the groups.
    2. If you need to maintain the current permissions setup, you can accomplish this using filesystem ACLs.

  4. #4
    Just Joined!
    Join Date
    Apr 2007
    Posts
    2
    Hmm, I need to maintain the current permission setup.
    What is filesystem ACLs?

  5. #5
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Think of them as an add-on to standard Unix filesystem permissions.

    http://en.wikipedia.org/wiki/Access_control_list

    Here's one of the first hits googling for 'linux filesystem acls':

    http://gentoo-wiki.com/HOWTO_Use_filesystem_ACLs

    Some info there is obviously gentoo-specific. Whether you can use them right away depends on whether support has been compiled into your kernel already.

    I've used filesystem ACLs in situations similar to what you're describing. Basically, a directory required specific ownership / permissions, but I wanted a "special" (non-root) user to be able to traverse and read its contents.

    Anyway, there are a lot of good resources on getting this working on the web. Post here if you have some specific questions. Happy reading.

Posting Permissions

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