The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-14-2007
lyonsd lyonsd is offline
Registered User
  
 

Join Date: Jan 2005
Posts: 35
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?