The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
unable to create any directory that uses numbers as the directory name fed.linuxgossip UNIX for Advanced & Expert Users 16 01-13-2008 08:54 PM
Unable to see all file in a current directory srikanthus2002 Shell Programming and Scripting 3 09-27-2006 04:07 AM
chmod erased a directory(?) SmooBG UNIX for Dummies Questions & Answers 1 11-14-2005 03:05 PM
what to chmod to write in a directory? phonedog365 UNIX for Dummies Questions & Answers 2 05-30-2005 04:23 PM
directory permissions and CHMOD ncarmstrong UNIX for Dummies Questions & Answers 3 08-14-2002 01:00 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #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?
  #2 (permalink)  
Old 11-14-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,318
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 (permalink)  
Old 11-15-2007
lyonsd lyonsd is offline
Registered User
  
 

Join Date: Jan 2005
Posts: 35
Quote:
Originally Posted by sysgate View Post
I noticed that the permissions are : root:root, whereas you are rootther ? 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 (permalink)  
Old 11-15-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
What are your rights on the parent directory of local?
  #5 (permalink)  
Old 11-15-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
What does this command show:
ppriv -e -D chmod +w local/
  #6 (permalink)  
Old 11-15-2007
lyonsd lyonsd is offline
Registered User
  
 

Join Date: Jan 2005
Posts: 35
Quote:
Originally Posted by porter View Post
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 (permalink)  
Old 11-15-2007
lyonsd lyonsd is offline
Registered User
  
 

Join Date: Jan 2005
Posts: 35
Quote:
Originally Posted by lyonsd View Post
# 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
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0