Operating System - Tru64 Unix
1753535 Members
7471 Online
108795 Solutions
New Discussion юеВ

i am getting an error when try to run sudo

 
whiteSox
Frequent Advisor

i am getting an error when try to run sudo

hostname# su - user01
hostname> /usr/local/bin/sudo su -
You do not have permission to su root

hostname/# uname -
OSF1
25 REPLIES 25
Patrick Wallek
Honored Contributor

Re: i am getting an error when try to run sudo

You need to add entries in the sudoers file so this user can run 'su'.
whiteSox
Frequent Advisor

Re: i am getting an error when try to run sudo

Where is the sudoers file located on that OS ?
OldSchool
Honored Contributor

Re: i am getting an error when try to run sudo

assuming the standard conventions, its probably in /etc...but I've never looked at OSF1.

also, you *don't* edit it with "vi", use "visudo" instead.....

whiteSox
Frequent Advisor

Re: i am getting an error when try to run sudo

it is not in /etc
Patrick Wallek
Honored Contributor

Re: i am getting an error when try to run sudo

Invoke 'visudo' to edit the sudoers file.

visudo might be in /usr/local/sbin.

The actual sudoers file **MIGHT** be in /usr/local/etc/sudo, but it depends entirely on the location specified via the installation package for this OS.
whiteSox
Frequent Advisor

Re: i am getting an error when try to run sudo

what do i need to specify if i found the file because i can use /usr/local/bin/sudo su - But it is the other users that can't sudo up .
Vishu
Trusted Contributor

Re: i am getting an error when try to run sudo

Hi,

Just run visudo, it will automatically open the sudoers file for editing. You can find visudo with the command

# whereis visudo


PS: please assign points.
whiteSox
Frequent Advisor

Re: i am getting an error when try to run sudo

hostname/# whereis visudo
visudo:
OldSchool
Honored Contributor

Re: i am getting an error when try to run sudo

".... file because i can use
/usr/local/bin/sudo su - "
But it is the other users that can't sudo up .

that's going to depend on *what* you want to do? Do you have specific users that you want to have this ability or everbody (not recommended) or what?