The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
testing areef4u UNIX for Advanced & Expert Users 1 08-04-2006 05:04 AM
testing areef4u UNIX for Advanced & Expert Users 2 08-01-2006 09:01 PM
DNS testing bache_gowda IP Networking 1 04-29-2002 05:59 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-16-2007
Registered User
 

Join Date: Dec 2007
Posts: 18
Testing permission

One question to test the permission

I know test commands give us:
test -w filename - to test if file exists and writeable
test -x filename - to test if file exists and executable
test -r filename - to test if file exists and readable

How do I test if the permission is writeable or readable or executable by group users and everybody? As far as I know -w -x -r is to test for owners, am I right?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-16-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by felixwhoals View Post
As far as I know -w -x -r is to test for owners, am I right?
No, it tests whether the current user has that right. Which may be through owning the file, or by being in the right group for somebody elses file, or by the file have the appropriate world rights.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:57 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0