Find the answer to your Linux question:
Results 1 to 7 of 7
I'm very newbie in Linux.I can't access the sudoers file get this message " /etc/sudoers: Permission denied. I'm working with root user. Thx in advance....
  1. #1
    Just Joined!
    Join Date
    Dec 2011
    Posts
    4

    root can not open /etc/sudoers not have permissions??

    I'm very newbie in Linux.I can't access the sudoers file get this message " /etc/sudoers: Permission denied.
    I'm working with root user.


    Thx in advance.

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,100
    How are you trying to access it?
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Dec 2011
    Posts
    4
    /etc/sudoers and then press enter..

  4. #4
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,100
    It is a textfile, so it does not have or need a executeable bit.

    You can open it with a texteditor of your choice.
    vi(m) or emacs are very powerful, but probably need some time to get used to.

    For a start, you could use nano or pico
    nano -w /etc/sudoers

    There is also the specialized command visudo:
    visudo(: edit sudoers file - Linux man page
    You must always face the curtain with a bow.

  5. #5
    Just Joined!
    Join Date
    Dec 2011
    Posts
    4
    "Nano" is a program?

  6. #6
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,100
    Yes, it is a small text editor.

    If it is not yet installed, then you can do so (on redhat/centos/fedora/redhat based linux distros) with
    Code:
    yum install nano
    You must always face the curtain with a bow.

  7. #7
    Just Joined!
    Join Date
    Dec 2011
    Posts
    4
    Wow it's works
    Thank you very much.

Posting Permissions

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