COnfiguring to allow su to root and users to sudo

m setting up an IBM system and need to allow my users to su to rrot (if they know the password) and also to allow them to sudo to root as well.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


Here a link on how to configure sudo:

If users run the command

su -

What error message they get?

gordonmannAuthor Commented:
Cannot su to root Authentication is denied
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

gordonmannAuthor Commented:
Tried that chuser su=true username and received "cannot execute".  I was logged on as root.
Can you see what permissions and who own chuser?

gordonmannAuthor Commented:
How do I tell
gordonmannAuthor Commented:
This is curious here is what I am getting when I log on as root. And try the "locate" command.

/etc/profile[73]: /usr/local/bin/  not found.
/etc/profile[74]: test: 0403-004 Specify a parameter with this command.
/etc/profile[89]: /usr/local/bin/  not found.
mkdir: cannot access directory /var/byrams/output/tmp.
/var/byrams/output/tmp: No such file or directory
[root@stage01:/] locate chuser
ksh: locate:  not found


ls -l `which chuser`

and post output
gordonmannAuthor Commented:
Tried 2 users.   Also, I added /usr/bin to root's path and now the command works.
I think the environment profiels are messed up.

[root@stage01:/] ls -l root
root not found
[root@stage01:/] ls -l gmann
gmann not found
normally the root home dir is /

for users you may use

finger username

PATH is normally set in /.profile for root if using sh / ksh

If using csh, then path in /.login


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gordonmannAuthor Commented:
Login name: root
Directory: /                            Shell: /usr/bin/ksh
On since Jan 24 15:30:26 on pts/0
No Plan.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java App Servers

From novice to tech pro — start learning today.