Computing.Net > Forums > Unix > Permission Question

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Permission Question

Reply to Message Icon

Name: May
Date: January 5, 2003 at 07:17:33 Pacific
OS: Sun Solaris
CPU/Ram: p4/1G
Comment:

Hi,
I have this question and answer below..pls can anyone tell me why ANSWER C is correct.

Q
A file permission listed..rw_rw_r__ FILE. Which will not change its permission?

A chmod u-w FILE
B chmod u-x FILE
C chmod g-w FILE
D chmod g-x FILE

Many thanks



Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: January 5, 2003 at 07:39:35 Pacific
Reply:

Answer C is incorrect. Either answer B or D is correct.


0

Response Number 2
Name: d3
Date: January 5, 2003 at 23:05:02 Pacific
Reply:

.rw_rw_r__
A chmod u-w FILE

This give the user (owner) write premission which
they already have.

B chmod u-x FILE

gives the user execute premissions.

C chmod g-w FILE

gives the group write premissions

D chmod g-x FILE

gives the group execute premissions

read; "man chmod"


0

Response Number 3
Name: David Perry
Date: January 6, 2003 at 02:56:02 Pacific
Reply:

I think you are confusing the '+' and '-' signs.

chmod g-x removes execute privs for the group.


0

Response Number 4
Name: jonob
Date: January 6, 2003 at 05:24:01 Pacific
Reply:

call me old fashioned, i think numbers chmodding is far easier to work with
each of the groups is assigned a number
where r=4
w=2
x=1
add up the permissions required for each group
rwx=7
r_x=5
rw_=6
example myfile rwxr___wx
this would require a chmod 743 myfile.

Jono


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Permission Question

Folder Permissions Question www.computing.net/answers/unix/folder-permissions-question/4294.html

Permission questions www.computing.net/answers/unix/permission-questions/7323.html

Default Permissions www.computing.net/answers/unix/default-permissions/5676.html