10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am looking t run root level command on multiple servers, but all servers have only "su - " permission available in sudoers.
please help me if any way that I can run command using help of "su -"
My script
for hosts in `cat hosts.txt`;
do
echo "###########################Server Name-... (5 Replies)
Discussion started by: yash_message
5 Replies
2. UNIX for Dummies Questions & Answers
I have a script (ksh) that has permissions 775 and owned by root.system. This script takes the parameter of a full file name and chmods the file to 666 and changes ownership to user smith.staff.
ex: modify_file.ksh /home/smith/filea
modify_file.ksh has 775 and root.system ownership.
The... (1 Reply)
Discussion started by: mlacriola
1 Replies
3. Red Hat
I cannot mkdir as root
please see below
# mkdir /home/vm1/Desktop/nfs
mkdir: cannot create directory `/home/vm1/Desktop/nfs': Permission deniedso i checked the selinux context below and got
# ls -Z /home/vm1
drwxrwxrwx. root root system_u:object_r:autofs_t:s0 Desktop
drwxr-xr-x. vm1 ... (10 Replies)
Discussion started by: nokia3310
10 Replies
4. Shell Programming and Scripting
( sleep 3
echo ${LOGIN}
sleep 2
echo ${PSWD}
sleep 2
while read line
do
echo "$line"
PID=$?
sleep 2
kill -9 $PID
done < temp
sleep 5
echo "exit" ) | telnet ${HOST}
while is executing only command and exits. (5 Replies)
Discussion started by: sooda
5 Replies
5. Shell Programming and Scripting
So I have a script that runs as a non-root user, lets say the username is 'xymon' .
This script needs to log on to a remote system as a non-root user also and call up a bash script that runs another bash script as root.
in short: user xymon on system A needs to run a file as root user and have... (2 Replies)
Discussion started by: damang111
2 Replies
6. Cybersecurity
Hello,
Running Debian lenny.
Is there any way to run $ chage --expiredate some_date user1
chage: Permission denied.
as not root user inside script ?
I really need to do this, I could grant whatever group membership to running user, setuid bit or whatever is needed ?
(I do not want to do... (4 Replies)
Discussion started by: vilius
4 Replies
7. UNIX for Dummies Questions & Answers
hi
i am new to unix and i have abig task. i have to \run particular commands having root privileges from a non root user. i know sudo is one of the way but i need sum other approach kindly help
Thanks (5 Replies)
Discussion started by: suryashikha
5 Replies
8. HP-UX
Hi all,
Can somebody give me advice on how to run tlremove and tlinstall command without root login.
When i try to login to root i get error message as "crt0: ERROR couldn't open dld.sl errno:000000002". This error comes when transition link is removed.
so i want to reinstall the link...
... (1 Reply)
Discussion started by: aditya.gaur
1 Replies
9. Filesystems, Disks and Memory
Dear Buddies,
Plz Help me out ,,,,,, the Unix Servers i m working on ,,,Somes times run out of space in root ,,,due the generation of a file named STA ....which causes the system to crash ,,,,,
plz hlp me !!!!!!!!!!!!!!!!!!!!!!
how to find out the file ....generation causes ......
... (6 Replies)
Discussion started by: scorpiyanz
6 Replies
10. UNIX for Dummies Questions & Answers
All,
I want to run a non-root script as the root user with non-root environment variables with crontab. The non-root user would have environment variables for database access such as Oracle or Sybase. The root user does not have the Oracle or Sybase enviroment variables. I thought you could do... (2 Replies)
Discussion started by: bubba112557
2 Replies