Directory (and sub-directory) permissions...


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Directory (and sub-directory) permissions...
# 1  
Old 01-15-2014
Directory (and sub-directory) permissions...

Hi,

I had a newbie question on giving permissions to directories and subdirectories.

I am one of the users in a group. The top level directory (say directory 'X' - owned by someone else) has the following permissions:

drwxrwxrwx

It also has a subdirectory, say 'Y', (which in turn has more subdirectories). The permissions for Y are:

drwxr-xr-x

When I am in this directory, I cannot create a new folder. Also, when I try to do a sftp to copy files into this directory (Y), it gives an error.

For subdirectory Y, I tried to change the permissions, but it returned an error ("Operation not permitted").

Is there any way that I can change the permissions of the subdirectory, or what should I do to enable me to copy folders into directory Y?

many thanks!!
# 2  
Old 01-15-2014
First off, 777 is not the magic sledgehammer to fix all permissions problems. That drwxrwxrwx folder is a hazard and should be fixed.

You left out the most important information -- who the folder belongs to, who you are, what group the folder belongs to, and what groups you belong to. Knowing that, we could find a solution for you besides the magic sledgehammer.
# 3  
Old 01-15-2014
Folder X:
drwxrwxrwx 4 Ben Labant 60 Jan 15 10:27 X

Folder Y (sub-directory of folder X above):
drwxr-xr-x 4 Bart Labant 60 Nov 18 13:20 Y

Ben is the administrator, and both Ben and Bart (and me) are in the group (How do I check for all the members in the group?)

thanks!!
# 4  
Old 01-15-2014
chmod g+w "/path/to/Folder B" should allow your group to create and delete folders and files in there.

grep "groupname:" /etc/group to check who belongs to a group.
# 5  
Old 01-15-2014
I tried

chmod g+w "/path/to/Folder/Y"

but it didn't work. Error given is "Operation not permitted"
# 6  
Old 01-15-2014
You will have to ask your site admin then... for you must be root if you are not owner to changer perms ( mind you you can ask the owner also...)
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Directory permissions

i have an application that writes to a directory. let's call the directory: /var/app/ the permissions of this directory is: drwxrwxr-x Now the files that the application creates in this directory usually dont have read permissions for others. i know there's something called... (3 Replies)
Discussion started by: SkySmart
3 Replies

2. Solaris

Directory Permissions for 2 users on 1 directory

we want to allow user to FTP files into a directory, and then the program (PLSQL) will read and process the file, and then move the file to other directory for archiving. the user id: uftp1, group: ftp the program run in oracle database, thus have the user Id: oraprod, group: dba how to... (2 Replies)
Discussion started by: siakhooi
2 Replies

3. UNIX for Dummies Questions & Answers

changing directory permissions

Hi, Im getting this annoying problem on file permission when I copy a folder to a mounted external directory. the files inside the copied folders become all executable. I tried to search for ways how to undo the permission over the web but to no avail. tried this one but it doesnt change a... (2 Replies)
Discussion started by: ida1215
2 Replies

4. Shell Programming and Scripting

Checking directory permissions on UNIX directory

Hi, How do i check if I have read/write/execute rights on a UNIX directory? What I'm doing is checking read access on the files but i also want to check if user has rights on the direcory in whcih these files are present. if then...... And I check if the directory exists by using... (6 Replies)
Discussion started by: chetancrsp18
6 Replies

5. UNIX for Dummies Questions & Answers

How to see a user's permissions on a directory

i know about ls, I know.... but some of our shares have a long messy list of acls and it is a lot to sort through.. without a grep option, unless you have a really nice one, is there a simple way to say: show me <USER> acl permissions on <SHARE> ? (1 Reply)
Discussion started by: glev2005
1 Replies

6. UNIX for Dummies Questions & Answers

Directory Permissions

Hi all. Only one of the following makes any kind of sense as a possible permission field for a UNIX file. Which one? --w------- ----rwxrwx -r-------- --rwx----- ----r----- I think it is no. 3. I dont think it would be 2, because why would you want to give groups and... (1 Reply)
Discussion started by: hawaiifiver
1 Replies

7. UNIX for Dummies Questions & Answers

how to change permissions in a certain directory?

Hi , I have a situation where plenty of users log in to the same directory and put in files. When they put in the files, I need those files to become group writable (chmod g+w) automatically. I have no control over the users' profiles. Is there a way to do it? (1 Reply)
Discussion started by: praveen_indramo
1 Replies

8. UNIX for Dummies Questions & Answers

permissions of a directory

Read and write bits make sense for a directory but what about the execute permission bit What does that imply?Is it just a filler? Saurabh (3 Replies)
Discussion started by: smehra
3 Replies

9. Shell Programming and Scripting

determine owner directory permissions from within the directory

From within a directory, how do I determine whether I have write permission for it. test -w pwd ; echo ? This doesn't work as it returns false, even though I have write permission. (4 Replies)
Discussion started by: Sniper Pixie
4 Replies

10. UNIX for Dummies Questions & Answers

directory permissions and CHMOD

I am working on a new UNIX box that has been delivered to us, and noticed that the /home directory has 555 permissions on it (dr-xr-xr-x). Any attempt to create write permissions fails on this directory (such as chmod 777), responding only with a message; chmod: WARNING: can't change home ... (3 Replies)
Discussion started by: ncarmstrong
3 Replies
Login or Register to Ask a Question