Results 1 to 5 of 5

Thread: Permissions and rights

  1. #1

    Permissions and rights

    Hi all,

    I'm running Red Hat 7.2 and would like to setup my user account to have the same rights as the root account (not all, just some of the same rights). In particular, I would like to be able to edit files in the /usr directory. How would I go about doing this?

    Thanks for the help.

  2. #2

    Re: Permissions and rights

    Find the files you want to edit, make sure they have the group-write bit set (chmod g+w file), then put yourself in the group of those files.

  3. #3

    Re: Permissions and rights

    Instead of that hassle, give your user rights to sudo in /etc/sudoers.

    Just mirror what's above.

    Then when you want to do something that requires root access, type sudo first. so to edit /etc/passwd,

    [user@host etc]$ sudo passwd


    and it will work for you.

  4. #4
    Guest

    Re: Permissions and rights


    link=board=general&num=1007076702&start=0# 2 date=11/30/01 at 23:08:40]
    Instead of that hassle, give your user rights to sudo in /etc/sudoers.

    Just mirror what's above.

    Then when you want to do something that requires root access, type sudo first. so to edit /etc/passwd,

    [user@host etc]$ sudo passwd


    and it will work for you.
    umh, isn't that very similar to just su'ing when u need root access?

  5. #5

    Re: Permissions and rights

    One less setup. Plus youi don't have to exit out of su when you are done.

Similar Threads

  1. Setting permissions for folder and file access in Linux
    By honey bee in forum Linux - General Topics
    Replies: 1
    Last Post: 06-08-2007, 10:09 AM
  2. Unable to change permissions on a mounted win2k_server folder
    By clemo in forum Linux - Hardware, Networking & Security
    Replies: 19
    Last Post: 08-14-2005, 04:15 PM
  3. Should I set up ftp or can I assign permissions with Samba?
    By flyboy56 in forum Linux - General Topics
    Replies: 2
    Last Post: 01-03-2005, 04:04 PM
  4. Partition Permissions
    By saintNiX in forum Linux - General Topics
    Replies: 11
    Last Post: 11-11-2002, 01:27 AM

Bookmarks

Posting Permissions

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