Unable to chmod a file/directory


 
Thread Tools Search this Thread
Operating Systems Solaris Unable to chmod a file/directory
# 1  
Old 11-14-2007
Unable to chmod a file/directory

This is Solaris 10, by the way.

I am aware of ACLs or something like that in Solaris 10 where you can change who can access directories and such that goes beyond the standard permisisons (chmod and rwxrwxrwx).

Although I thought when these were being used, the permissions listing would show a '+' appeneded to the permisions, like shown below:

Code:
# ls -laFd local
dr-xr-xr-x+   1 root     root           1 Nov 13 13:27 local/

However, in this case there is no '+'. It looks like this:
Code:
# ls -laFd local
dr-xr-xr-x   1 root     root           1 Nov 13 13:27 local/

Yet even as root I cannot modify it:
Code:
# chmod +w local/
chmod: WARNING: can't change local/

This is /usr/local by the way. And it's not mounted read-only...
Code:
# mount|grep -i usr

Code:
# grep -i usr /etc/vfstab
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1       yes     -

Code:
# mount|grep -i local

Code:
# grep -i local /etc/vfstab

And just to make sure:

Code:
# id
uid=0(root) gid=1(other)

Code:
# uname -a
SunOS dncs 5.10 SunOS_Development sun4u sparc SUNW,Sun-Fire-880

How can I modify the permissions on that directory?
# 2  
Old 11-14-2007
I noticed that the permissions are : root:root, whereas you are root:other ? is it possible that the group you are in doesn't have rights to modify certain files / folders ?
# 3  
Old 11-15-2007
Quote:
Originally Posted by sysgate
I noticed that the permissions are : root:root, whereas you are rootSmiliether ? is it possible that the group you are in doesn't have rights to modify certain files / folders ?
No. It's got something to do with extended permissions, I think.
# 4  
Old 11-15-2007
What are your rights on the parent directory of local?
# 5  
Old 11-15-2007
What does this command show:
ppriv -e -D chmod +w local/
# 6  
Old 11-15-2007
Quote:
Originally Posted by porter
What are your rights on the parent directory of local?
# ls -laFd /usr
drwxr-xr-x 33 root sys 1024 Nov 14 05:34 /usr/
# 7  
Old 11-15-2007
Quote:
Originally Posted by lyonsd
# ls -laFd /usr
drwxr-xr-x 33 root sys 1024 Nov 14 05:34 /usr/
# ppriv -e -D chmod +w local/
chmod: WARNING: can't change local/
# pwd
/usr
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

excluding a directory with chown, chmod

does anyone know how to exclude a directory with chown or chmod? im trying to do something like this chown $username:$username $directory/* chown $username:$username $directory/.* chown $username:$username $directory and find $directory/* -type f -exec... (1 Reply)
Discussion started by: vanessafan99
1 Replies

2. Red Hat

chmod only immediate directory?

I am having trouble figuring out how to do a "chmod o-w" for all files under a certain directory, while excluding directories under that certain directory. I can do chmod -R o-w /thisdirectory but that changes permissions of all directories under the directory as well as files. I just... (2 Replies)
Discussion started by: austinharris43
2 Replies

3. UNIX and Linux Applications

What is the difference between chmod in solaris and chmod in Linux?

i think it is the same in both... Iam i right? (1 Reply)
Discussion started by: sumaiya
1 Replies

4. Programming

chmod:No such file or directory

sprintf(fname, "core.%d", pid); (void) unlink(fname); if (ttrace(TT_PROC_CORE, pid, 0, 0, 0, 0) != 0) { perror("TT_PROC_CORE pass"); Fail(); } if (chmod(fname, 0) != 0) { perror("chmod"); Fail(); } Hi, If i execute above code,everytime am getting below... (1 Reply)
Discussion started by: mansa
1 Replies

5. UNIX for Dummies Questions & Answers

rm: Unable to remove directory /mnt/users/test/logs/: File exists

rm: Unable to remove directory /mnt/users/test/logs/: File exists ls -latr total 191208 drwxrwxrwx 6 test echo 4096 Jul 3 22:36 .. -rwxrwxrwx 1 test echo 97692804 Jul 3 22:36 .nfsDFA4 drwxrwxr-x 2 test echo 4096 Jul 3 23:00 . M not able to delete... (4 Replies)
Discussion started by: solitare123
4 Replies

6. UNIX for Advanced & Expert Users

unable to create any directory that uses numbers as the directory name

Version-Release number of selected component (if applicable): ================================================================== root@server # cat /etc/redhat-release Red Hat Enterprise Linux ES release 4 (Nahant Update 5) root@server # uname -a Linux server.integrityserver.net... (16 Replies)
Discussion started by: fed.linuxgossip
16 Replies

7. Shell Programming and Scripting

Unable to see all file in a current directory

Hi, I am unable to see all files in a current directory when use "ls -lrt" command it is giving error message as below ( I think this current directory is having about 500 files) <CONTROL /home/ckanth/sri>ls -lrt UX:ls: ERROR: Out of memory: Insufficient or invalid memory But when i... (3 Replies)
Discussion started by: srikanthus2002
3 Replies

8. UNIX for Dummies Questions & Answers

chmod erased a directory(?)

I was attempting to change permissions on a directory, used a 'chmod -rwrwrw DirectoryName' command, and hit enter. Now, that directory shows that it's empty! How could this be? Any Ideas? Thanks (1 Reply)
Discussion started by: SmooBG
1 Replies

9. UNIX for Dummies Questions & Answers

what to chmod to write in a directory?

i am unable to write to some .php files in the following directory: drwxr-xr-x 3 headroom max 448 Jun 6 2004 Docs i already tried this: chmod +777 Docs chmod: changing permissions of `Docs': Operation not permitted thanks for your help! (2 Replies)
Discussion started by: phonedog365
2 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