10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm working on a script to SSH and SUDO as (sap user sidadm) then automatically run commands that the sidadm user can run such as R3trans -v, tp, etc..
I can SSH without password and SUDO..
but the commands don't run after I SSH and SUDO to the sidadm user...here is the commands that I've... (2 Replies)
Discussion started by: icemanj
2 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
Seeking for your assistance on how to log that has been chmod,mv,chown,chgrp and how to prevent script running while chmod,mv,chown,chgrp are still running?
Ex: a/b/c-folder
file1.txt
file2.txt
file3.txt
chmod 777 *
chown owner
owner group
mv
what i did was(please see... (6 Replies)
Discussion started by: nikki1200
6 Replies
3. Shell Programming and Scripting
hi gurus.
I have a little script that runs java from a certain directory. This script runs fine when run manually but when I try to schedule it, it fails to find the script.
little_script.sh..
/<directory of java>/java -classpath... (3 Replies)
Discussion started by: MrCarter
3 Replies
4. Shell Programming and Scripting
does anyone know how to exclude a directory with chown or chmod?
im trying to do something like this
chown $username:$username $directory/*
chown $username:$username $directory/.*
chown $username:$username $directory
and
find $directory/* -type f -exec... (1 Reply)
Discussion started by: vanessafan99
1 Replies
5. Solaris
Hi Dears,
I have one requirement like this:
general user A can execute command C with root privilege by sudo configuration
some folders and files are created during the command C execution
user A cannot access those folders and files because the owner is root user, so I want the user A... (0 Replies)
Discussion started by: crest.boy
0 Replies
6. OS X (Apple)
I was following a tutorial on installing Homebrew and I changed the ownership of /usr/local/ to me. Now McAfee Security won't start This is the exact line I typed:
sudo chown -R `whoami` /usr/local
Then I tried to fix it with:
sudo chown -R root /usr/local
I still can't start mcafee. It say... (7 Replies)
Discussion started by: chancho
7 Replies
7. Shell Programming and Scripting
Hi,
I have a shell script file which is set to access permission 000. When I login as root (sudo su) and try to run this script, I am getting the Permission denied error. I have read somewhere that root admin user can execute any kind of permission script. Then why this behavior? However, I can... (1 Reply)
Discussion started by: royalibrahim
1 Replies
8. Shell Programming and Scripting
Legends,
I am trying sudo chmod from one shell to different machine. but getting the error.
Please let me know if there is any way to do this.
A#pk} for i in Bl1 Brl1
>> do
>> echo $i
>> ssh $i sudo chmod 755 /etc/services
>> done
Bl1
Password:
bash: sudo: command not found
... (2 Replies)
Discussion started by: sdosanjh
2 Replies
9. Shell Programming and Scripting
I'm changing (trying to anyway) a script that will need to unrar a file, this file will create a directory with files in it. Then I need to change the owner ship and permission on that directory. Finally, I will rsync the directory to another machine.
This is what I have so far.
#!/bin/bash
... (1 Reply)
Discussion started by: walkerl
1 Replies
10. UNIX for Advanced & Expert Users
now running mac os x 10.53 and sudo chmod comes back with : operation not permitted.
sample file:
-rwxr-xr-x+ 1 1000 com.apple.monitor_all_services 276592 Jun 8 2007 342345.tif
i am running as root. (1 Reply)
Discussion started by: Movomito
1 Replies