10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, Have a need to run the below command as a "karuser" from a java class which will is running as "root" user. When we are trying to run the below command from java code getting the below error.
Command:
sudo -u karuser -s /bin/bash /bank/karunix/bin/build_cycles.sh
Error:
sudo: sorry,... (8 Replies)
Discussion started by: Satyak
8 Replies
2. Shell Programming and Scripting
Hi All,
I running a unix command using sudo option inside shell script. Its working well. But in crontab the same command is not working and its throwing
"sudo: sorry, you must have a tty to run sudo". I do not have root permission to add or change settings for my userid. I can not even ask... (9 Replies)
Discussion started by: Apple1221
9 Replies
3. Shell Programming and Scripting
I am writing a BASH script to update a webserver and then restart Apache. It looks basically like this:
#!/bin/bash
rsync /path/on/local/machine/ foo.com:path/on/remote/machine/
ssh foo.com sudo /etc/init.d/apache2 reloadrsync and ssh don't prompt for a password, because I have DSA encryption... (9 Replies)
Discussion started by: fluoborate
9 Replies
4. UNIX for Advanced & Expert Users
pkgadd -d sudo-1.7.4p4-sol10-sparc-local
Sudo has been installed succesfully. Just wandering why I cannot still not use sudo.
root@host#which sudo
/usr/bin/sudo
When I logged in using my own profile it says. I still cannot even execute visudo. Not sure what parameters Im stil missing
... (4 Replies)
Discussion started by: lhareigh890
4 Replies
5. AIX
Sudo In AIX, how to find out what commands have been run after a user sudo to another user? for example, user sam run 'sudo -u robert ksh' then run some commands, how can I (as root) find what commands have been run?
sudo.log only contains sudo event, no activity logging. (3 Replies)
Discussion started by: jalite19
3 Replies
6. UNIX for Dummies Questions & Answers
Hi! I'm very new to unix, so please keep that in mind with the level of language used if you choose to help :D Thanks!
When attempting to use sudo on and AIX machine with oslevel 5.1.0.0, I get the following error:
exec(): 0509-036 Cannot load program sudo because of the following errors:... (1 Reply)
Discussion started by: Chloe123
1 Replies
7. UNIX for Dummies Questions & Answers
it asks for password and then following is displayed
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package build-essential
what should i do to install g++ compiler? (4 Replies)
Discussion started by: sparkle
4 Replies
8. AIX
I'm trying to install sudo on AIX 5.3. I don't have a compiler on my machine, so I was trying to find a binary. The one found at http://www.bullfreeware.com/listaix52.html that is supposed to work for 5.3 even though it was compiled on 5.2. The issue is I'm new to AIX and could not figure out how... (3 Replies)
Discussion started by: sphericon
3 Replies
9. UNIX for Dummies Questions & Answers
Hello folks, had a question.
I was trying to install sudotool on HP -UX 11i.
I downloaded gzip file from sudo site and unzipped to /tmp folder on HP box
how do i install it??
do i need to run "swinstall" menu and then choose from there?
THanks!
karthik (1 Reply)
Discussion started by: karthikosu
1 Replies
10. UNIX for Dummies Questions & Answers
I need to install an application on my Sun station and need root privleges to do so. I was given sudo privileges and was told to issue the following command.
bash-2.03$ sudo init 0
I've read the man pages for init and understand the purpose of that command. My questions are:
1. From the... (2 Replies)
Discussion started by: forbin24
2 Replies