Permissions question

 
Thread Tools Search this Thread
Homework and Emergencies Homework & Coursework Questions Permissions question
# 1  
Old 12-14-2011
Permissions question

1. The problem statement, all variables and given/known data:
Don't understand this problem: The question is the unix command chmod 754 file3 would yield the same permissions as:
I put: chmod u=rwx, g=rx, o=r file3
correct answer was : chmod u+rwx, g=rx, o=r file3

I guess im asking for what does the "+" mean and what the difference to why this is wrong.


2. Relevant commands, code, scripts, algorithms:

chmod


3. The attempts at a solution (include all code and scripts):
test question wrong


4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):

FSU, Tallahassee, FL, USA, Prof. Rob, COP 3353
# 2  
Old 12-14-2011
Phrased differently from your previous similar question:
https://www.unix.com/unix-dummies-que...rmissions.html

Referring to your current post in this thread, Imho you are 100% correct.
Code:
chmod u=rwx, g=rx, o=r file3
Is exactly the same as:
chmod 754 file3

Code:
chmod u+rwx, g=rx, o=r file3
would not unset the SUID bit (if it was set)
therefore it is not exactly the same as
chmod 754 file3

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Wtmpx File Permissions Question

Hi all, I have been tasked to change permissions on the wtmpx file to 640. Currently the permissions are at 644. My question is will anything be affected if I change the permissions as shown? Thanks in advance. Derek (2 Replies)
Discussion started by: Derk Berk
2 Replies

2. UNIX for Advanced & Expert Users

Group permissions question

I have a user who has had an id change. His old id was xl00 his new id b000999. Both id's are in group bauser. The user now cannot access his old files even though he is in the same group and permissions seem to be ok. See below, first 2 files he can't see, second two are no problem. ... (2 Replies)
Discussion started by: dw82199
2 Replies

3. UNIX for Dummies Questions & Answers

General question about folder level permissions

How is the level of access on a particular folder determined? I have heard (its just hearsay so am not particularly sure of it) that the access a particular user/group has to a low level directory is also affected by the level of access granted to the user/group on its parent directories. e.g. ... (1 Reply)
Discussion started by: jawsnnn
1 Replies

4. Shell Programming and Scripting

ksh; Change file permissions, update file, change permissions back?

Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies

5. Shell Programming and Scripting

permissions

My /tmp is set with the following permissions (777) and a 't' at the end. My umask is set to 022. When I create a directory under /tmp (tmp/xx) it gets created as 755 as expected. Yet when I create a file within that directory (/tmp/xx/yy) the permissions are not 755 they are 644. ... (1 Reply)
Discussion started by: BeefStu
1 Replies

6. UNIX for Dummies Questions & Answers

user permissions question

I have an application where in a user uploads files into a directory that has a collection of image files, as well as a text file that is read by a web script later. The script imports the text file data into a database, then copies the image files to a secure location. Ideally it should remove... (1 Reply)
Discussion started by: cdw.lighting
1 Replies

7. HP-UX

To give the "unzip" permissions & "create" file permissions

Hi, I am a Unix Admin. I have to give the permissions to a user for creating new file in a directory in HP-Ux 11.11 system since he cannot able to create a new file in the directory. Thanks in advance. Mike (3 Replies)
Discussion started by: Mike1234
3 Replies

8. Filesystems, Disks and Memory

Permissions question

I'm hoping this is a pretty simple question. I have a problem were memebers of a group can't delete or overwrite a file. The box is setup several users all part of the same group. Now default umask is 002. The problem I run into is there are processes that add to, del, and over write files. Now if... (1 Reply)
Discussion started by: lightspd2
1 Replies

9. Forum Support Area for Unregistered Users & Account Problems

no permissions

I am having problems editing my profile, performing a search, etc .... Always get msg that I don't have any permissions. What do I need to do? Thanks DANNYC (1 Reply)
Discussion started by: DANNYC
1 Replies

10. UNIX for Dummies Questions & Answers

enterprise level permissions question?

Can someone give me an example of Enterprise level permissions? (4 Replies)
Discussion started by: wmosley2
4 Replies
Login or Register to Ask a Question