Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: Sudo help

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Sudo help

    Hi all,

    I have a SPARC server with solaris 8 installed on it
    recently i installed Sudo package for it and configured it so that it will limits users to what they can do

    below is the config for sudoers file

    # sudoers file.
    # This file MUST be edited with the 'visudo' command as root.
    # See the man page for details on how to write a sudoers file.
    # Host alias specification
    # User alias specification
    User_Alias MAINTAINERS = chris
    # Cmnd alias specification
    Cmnd_Alias DEB = /usr/sbin/passwd, /usr/bin/useradd, /usr/local/MAINT/test.ksh

    # User privilege specification
    root ALL=(ALL) ALL

    I was wonder there's a file that i need to edit by using 'vi' but as a normal user i only have read access to it where and what do i need to add in the 'sudoers' file in order to edit that file for e.g that file is located in '/etc/users'


  2. #2
    Linux Newbie raghaven.kumar's Avatar
    Join Date
    Mar 2008
    Bangalore, India
    IMO, sudoers is not for files but processes.

    If you want permission for a file

    you can change permissions or try

    Personally, i feel setfacl is a useful command
    but have been wondering whether its safe or not?

Posting Permissions

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