1845707 Members
3921 Online
110247 Solutions
New Discussion

Re: sbin command

 
muthamilan
Frequent Advisor

sbin command

hi all
I need sbin command like ioscan to run on normal specfic user.
Pl,guide me.

Thanks&Regards
S.Muthamilan
5 REPLIES 5
Devender Khatana
Honored Contributor

Re: sbin command

Hi,

You can implement sudo to achive this. After implementing this a normal user can do some defined preveledged jobs and everything gets logged in syslog.

HTH,
Devender
Impossible itself mentions "I m possible"
muthamilan
Frequent Advisor

Re: sbin command

Thanks devendar,I need more help.
How do implement sudo?
Pl, help me.

Thanks&Regards
S.Muthamilan
Sยภเl Kย๓คг
Respected Contributor

Re: sbin command

hi,

'sudo' allows a normal user to execute commands with 'super user permission'
You need to download and install sudo package from http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.8p9/. Install it using swinstall. After that you need to customise /etc/sudoers file, inorder to use specified commands by a user or a group of users. Then the user need to use $sudo to execute it with superuser permission.

You can view /var/adm/sudolog/sudo.log
to find the history of the commands executed through sudoers.

Regards,
Sunil
Your imagination is the preview of your life's coming attractions
Devender Khatana
Honored Contributor

Re: sbin command

Hi,
The latest version is available here as well.

http://www.gratisoft.us/sudo/

After installing this package using swinstall you can edit sudoers file using "visudo" command.

The file is self explained and examples are there to add commands. You can add commands there as per the syntax mentioned.

Once done you can list the commands permitted for a particular user by giving

$sudo -l

From the command prompt of that user. Importantly only commands needs to be entered and the arguments will be supported by default.

HTH,
Devender
Impossible itself mentions "I m possible"
muthamilan
Frequent Advisor

Re: sbin command

Thanks friend


Thanks&Regards
S.Muthamilan