- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- scripting question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2003 10:12 AM
тАО08-21-2003 10:12 AM
I am trying to write a small command seq. to find out the files which only owner has read/write privs and none other (group/world) has any privileges on the files in a directory and its sub directories. Could some body help me on how to do this. Thanks,
Regards,
Krish
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2003 10:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2003 10:17 AM
тАО08-21-2003 10:17 AM
Re: scripting question
You could try the 'find' command:
find . -user username -perm 0600
where 'username' is the user name you wish to find files for.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2003 10:21 AM
тАО08-21-2003 10:21 AM
Re: scripting question
find /top_dir -perm 100
find /top_dir -perm 200
find /top_dir -perm 300
find /top_dir -perm 400
...
find /top_dir -perm 700
Best regards,
Kent M. Ostby
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2003 10:31 AM
тАО08-21-2003 10:31 AM
Re: scripting question
User executing the command is :xyz
$ ll -d /home/oclin/ocusr/test_dir
drwx------ 2 ramon oclin 96 Aug 21 07:00 /home/oclin/opusr/test_dir
$ find ~ -perm 0600 -exec ll {} \;
-rw------- 1 xyz oclin 205614 Aug 21 11:25 /home/oclin/ocusr/.sh_history
-rw------- 1 ramon oclin 0 Aug 20 11:13 /home/oclin/ocusr/abcd.log
find: cannot open /home/oclin/ocusr/test_dir
How do I extend the command to directories also?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2003 10:33 AM
тАО08-21-2003 10:33 AM
Re: scripting question
man find for more details
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2003 10:34 AM
тАО08-21-2003 10:34 AM
Re: scripting question
The obvious answer is to run your find command is root. If that's not possible, I'm at a loss.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2003 12:37 AM
тАО08-22-2003 12:37 AM
Re: scripting question
you can use -type option of find command to specify file/ directory.
find /
Regards
VJ.