Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Unable to use the Sudo command. "0509-130 Symbol resolution failed for sudo because:" Post 302381986 by TonyFullerMalv on Monday 21st of December 2009 04:09:55 PM
Old 12-21-2009
I am more used to Solaris where I would use the ldd command to check that all the libraries are present and correct, the FAQ at:
2.27: Where can I find ldd for AIX?
says where ldd for AIX is available.

To use ldd(1) you would cd to where sudo lives and then run:
Code:
$ ldd ./sudo

This checks all the libraries are present, then run:
Code:
$ ldd -r ./sudo

This will check all the symbols are present, this will show you which libraries you require more up to date versions of.

To make a more up to date library files available to only sudo you can cheat and write a wrapper script that puts the directory where you have put the more up to date libraries first (not one of the normal library directories) in the LD_LIBRARY_PATH and then call sudo $@. This is a kludge in some folks opinions but it works!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Possible to give non root user sudo to "crontab -l"

Does anyone know if this is possible? I want to give some users access to root's crontab but only with a read privilege. Is this possible to do or can only root or people with full root sudo view root's cron? (4 Replies)
Discussion started by: LordJezoX
4 Replies

2. UNIX for Dummies Questions & Answers

changing password with sudo user " permission denied"

HI All, I am using solaris i created a user adam and updated his permissions in vi sudoers file as follows adam ALL=(ALL) NOPASSWORD: ALL ........... when i create user by logging as sudo user . $ sudo useradd -d /home/kalyan -m -s /bin/sh kalyan sudo: not found ... (6 Replies)
Discussion started by: kalyankalyan
6 Replies

3. Shell Programming and Scripting

sudo dd if=/dev/sdb1 of="disk-image"

sudo dd if=/dev/sdb1 of="disk-image" can anyone explain roughly to me is it this code do some recovery from /dev/sdb then output it to "disk-image" ? But then how can i access the "disk-image"? it cannot be read , and it told me its a binary file... (2 Replies)
Discussion started by: obanajunichiro
2 Replies

4. HP-UX

How to set up "sudo su -" to root with no need to type password?

Tittle has it.... Thanks friends... (2 Replies)
Discussion started by: 300zxmuro
2 Replies

5. UNIX for Dummies Questions & Answers

security problem with "sudo" for shutdown?

I am a UNIX user but not an admin. I am asking our admins to create a "sudo" command to allow shutting down our AIX workstations gracefully (without just pulling the plug). Is there a way to prevent the user from executing "shutdown" on another workstation or server on the network? (2 Replies)
Discussion started by: kg6iia
2 Replies

6. UNIX for Dummies Questions & Answers

Do I need to be "Sudo" user for file movement fr

Hi Experts Do I need to have "Sudo" privileges or user for file movement for file movement from one remote server to another or from local to remote server?:wall: (6 Replies)
Discussion started by: parpaa
6 Replies

7. Shell Programming and Scripting

Expect: spawn id exp5 not open while executing "expect "$" { send "sudo su -\r" }"

Hi All, i am trying to ssh to a remote machine and execute certain command to remote machine through script. i am able to ssh but after its getting hung at the promt and after pressing ctrl +d i am gettin the out put as expect: spawn id exp5 not open while executing "expect "$" {... (3 Replies)
Discussion started by: Siddharth shivh
3 Replies

8. Shell Programming and Scripting

Explaining behaviour of sudo bash "$0" "$@";

I've found this script part on the stackoverflow: if ; then sudo bash "$0" "$@"; exit "$?"; fi I realized that sudo bash "$0" "$@"; is the only needed for me. But the strange thing happens when I move this line outside the IF statement: sudo bash "$0" "$@"; stops the... (9 Replies)
Discussion started by: boqsc
9 Replies

9. UNIX for Beginners Questions & Answers

I misused: "sudo rm -rf /*"

Hey Guys, I have literally shot my myself in the head... I tried to use "sudo rm -rf /*" in Terminal (OSX); Unfortunately, I forgot cd Desktop. After I realized it, I was like :eek: After that i tried exit; but rm was a background command, so this did not work either... I came to late for... (5 Replies)
Discussion started by: SuchtyTV
5 Replies

10. UNIX for Advanced & Expert Users

"sudo su -" showing lot of information on OpenLDAP

Hello, I have configured new LDAP and new LDAP clients. When I do "sudo su -", it shows me lot of information, which is not required on screen. I am not sure, if any debug mode is enabled or from where it can be turned off. Please suggest, if it is know for you. -bash-3.2$ sudo su - sudo:... (8 Replies)
Discussion started by: solaris_1977
8 Replies
VIEW-OS(1)						      General Commands Manual							VIEW-OS(1)

NAME
viewsudo - execute a command as another (virtual) user SYNOPSIS
viewsudo [-g groupname|#gid] [-u username|#uid] command DESCRIPTION
viewsudo allows a user to execute a command as the superuser or another user in View-OS. OPTIONS
viewsudo accepts the following command line options: -g group Normally, viewsudo sets the primary group to root. The -g option causes sudo to run the specified command with the primary group set to group. To specify a gid instead of a group name, use #gid. When running commands as a gid, many shells require that the '#' be escaped with a backslash ('[u2019]). If no -u option is specified, the command will be run as the invoking user (not root). In either case, the primary group will be set to group. -u user The -u option causes viewsudo to run the specified command as a user other than root. To specify a uid instead of a user name, use #uid. When running commands as a uid, many shells require that the '#' be escaped with a backslash ('[u2019]). RETURN VALUES
Upon successful execution of a program, the exit status from viewsudo will simply be the exit status of the program that was executed. SEE ALSO
viewsu(1), sudo(1), linux.defs(5) AUTHORS
View-OS is a project of the Computer Science Department, University of Bologna. Project Leader: Renzo Davoli. <http://www.sourceforge.net/projects/view-os> Howto's and further information can be found on the project wiki <wiki.virtualsquare.org>. NOTE
Most part of the text is taken from sudo(1). VIEW-OS: a process with a view August 8, 2009 VIEW-OS(1)
All times are GMT -4. The time now is 06:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy