![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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? |
| Forum Sponsor | ||
|
|
|
|||
|
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.
|
|||
| Google UNIX.COM |