Linux.com

tech_soul8

tech_soul8

  • Linux.com Member
  • Posts: 2
  • Member Since: 04 Mar 11
  • Last Logged In: 04 Mar 11

Latest Posts

Posted by
Topic
Post Preview
Posted
  • tech_soul8
    RE: sudoers file
    So it doesn't matter if I add user to sudoers file,I'll always have to preface command with sudo? :)
    Link to this post 05 Mar 11

    So it doesn't matter if I add user to sudoers file,I'll always have to preface command with sudo? :)

  • tech_soul8
    sudoers file
    First sorry if i posted in wrong section So, I want to add user to sudoers file to give him permission to del users (to use "userdel command". I started bash and execute visudo. On the end of file I add new line so it looks like this "user name" ALL = /usr/sbin/userdel save the file and quit. When I try to execute command as users specified in sudoers file I get error message "userdel: cannot lock /etc/passwd; try again later" and I must use "sudo" to del user. Where I made mistake? Thanks for help
    Link to this post 05 Mar 11

    First sorry if i posted in wrong section
    So, I want to add user to sudoers file to give him permission to del users (to use "userdel command".
    I started bash and execute visudo. On the end of file I add new line so it looks like this
    "user name" ALL = /usr/sbin/userdel
    save the file and quit.
    When I try to execute command as users specified in sudoers file I get error message "userdel: cannot lock /etc/passwd; try again later" and I must use "sudo" to del user.
    Where I made mistake?
    Thanks for help

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board