Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

sudo access problems with login

marvin51796
Regular Advisor

sudo access problems with login

I have added a new user to my sudoers file, just like the other ones that are already in there and when he goes to do a sudo -i he gets this. Does any one have any ideas? this is on hpux ver 11vi3.

 

/home/XXXXX# sudo -i XXXXX

You have mail.

sh: XXXXX:  not found.

logout

 

 

thanks

 

4 REPLIES
Robert_Jewell
Honored Contributor

Re: sudo access problems with login

I assume the XXXX is referencing a command that is being attempted to run?  Does it matter what the command is?

 

 

The -i option engages the target user (root) .profile, so perhaps something in there is not setting up the path correctly.  What if you try the command using absolute pathing?

 

 

-Bob

----------------
Was this helpful? Like this post by giving me a thumbs up below!
marvin51796
Regular Advisor

Re: sudo access problems with login

no, when he does a sudo -i, he gets user has no access to /bin/sh as root on server abcde...

 

 

Highlighted
marvin51796
Regular Advisor

Re: sudo access problems with login

has anyone heard of any problems with ldaup not working with 4bit UID's???

marvin51796
Regular Advisor

Re: sudo access problems with login

I have actually got this working thanks for the help