file permission script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting file permission script
# 1  
Old 01-11-2008
file permission script

Hi all,

I need one script, that will give the out put like all files having 777 permissions and full path from home directory.

example:i created 777 permissions files three in my home directory and subdirectories also. i want out put like

./xxxxx/aaa.txt
./xxxxx/zzz/yyy.txt
./xxxxx/zzz/aaa.txt

xxxx is the user name.

If any body knows can you please help me out.I would thankful to all.


regards
Krishna Murthy
# 2  
Old 01-11-2008
$cat file1
aaa.txt
/zzz/yyy.txt

$for i in `cat file1`
do
chmod 777 $i
done

hope this is what you need
# 3  
Old 01-11-2008
Hi invinzin21,

Already existing files having rwxrwxrwx permissions.so i want to find those files in all directories(subdirectories also) with path.that is my requirement.
Please help me out.


regards
Krishna Murthy
# 4  
Old 01-11-2008
find . -perm 000777 -print
this is the one Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need a script to create file permission change restriction

Hello, I am looking for a UNIX shell script which can help me for access restriction. 1) /home/ram, there are number file with .txt extension, which should be only owned "ram" user. like as below ls -lrt *.txt -rwx------ 1 ram dba 11 Jan 4 2015 PASS1.txt -rwx------ 1 ram dba 10 Jan 4... (8 Replies)
Discussion started by: mr.trilok
8 Replies

2. Shell Programming and Scripting

Permission to the script.

I have written a script and now i want to deploy it in PRODUCTION. I want to give all the permission to the user only but not to others.What permission should i use? CHMOD 777 FILENAME? (9 Replies)
Discussion started by: rafa_fed2
9 Replies

3. Shell Programming and Scripting

looking for help on script to capture file permission.

Hi Guys, I'm a DBA and need help on shell scripting. My Oracle Database is sitting on HP-UX machine. Anyone has a script that can spool out permission of all oracle binary files in the below directory: /opt/ora10g/oracle/ Format to be spooled out : chmod <exisiting permission> filename... (10 Replies)
Discussion started by: ciaciachew
10 Replies

4. Shell Programming and Scripting

permission script

hi guys I am working on a menu... and the menu has some options like check status for services (gmonitor group) or stop - start - restart those same services (gadmin group) as you see there are 2 main groups gmonitor for monitoring and gadmin for restart - stop - start services so... (2 Replies)
Discussion started by: karlochacon
2 Replies

5. Shell Programming and Scripting

How to execute a script without giving x permission to the file?

How to execute a script with out giving x permission to the file? (7 Replies)
Discussion started by: praveen_b744
7 Replies

6. Shell Programming and Scripting

How to create a file with full permission in unix script

In my script, I am creating a file ----> then writting one line (i.e. Timestamp) ----> then FTP'ing. The same script can be executed by many other users. While other users executing this script, they couldn't Over write this one line (i.e. Timestamp) My expectation So I wanted to create a... (2 Replies)
Discussion started by: sbmk_design
2 Replies

7. Shell Programming and Scripting

issue invoking shell script using cron, even with proper file permission

I am using tcsh what could possibly be a problem, when using crontab to invoke a shell script. ? The script has the read, write and execute permission to all users. And the script works as expected while executing it in stand-alone mode. Is there a way to trace (like log) what error... (9 Replies)
Discussion started by: vikram3.r
9 Replies

8. Shell Programming and Scripting

Rc script permission problem

Hi, I have written a startup script which has be started while reboot. I am using Solaris10 machine and i have logged in as a root user. I have written a code the following code cp ./StartService /etc/init.d/ chmod 744 /etc/init.d/StartService //i have given it executable... (0 Replies)
Discussion started by: raghu.amilineni
0 Replies

9. UNIX for Advanced & Expert Users

Script without read permission but execute the script

I have a script, except me no one can read the script but they can execute the script. Is it possible? (14 Replies)
Discussion started by: kingganesh04
14 Replies
Login or Register to Ask a Question