Go Back   The UNIX and Linux Forums > Operating Systems > Solaris


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 10-14-2011
Registered User
 
Join Date: Oct 2011
Posts: 3
Thanks: 3
Thanked 0 Times in 0 Posts
Cannot change the permission of /etc/dfs/sharetab

I am using a Solaris 5.10 with patch level 10/08.

Here /etc/dfs/sharetab is listed as a file system with "df -k" as below:


Code:
 
#df -k /etc/dfs/sharetab
Filesystem kbytes used avail capacity Mounted on
sharefs 0 0 0 0% /etc/dfs/sharetab

What is "sharefs"? This is not present in my other Solaris machines.

I have logged in as root user. But I am not able to change the permission of /etc/dfs/sharetab file with chmod. It gives an error as "chmod: WARNING: can't change /etc/dfs/sharetab".

Please let me know what should be done to change the permission of this file.

Last edited by varunla; 10-14-2011 at 08:45 AM..
Sponsored Links
    #2  
Old 10-14-2011
Registered User
 
Join Date: Jun 2008
Posts: 559
Thanks: 7
Thanked 46 Times in 44 Posts
It seems that your Solaris machine is exposing the file /etc/dfs/sharetab this file determines which directories will be NFS-shared at boot time. Each line is a share command.
Sharefs is a file system like proc file system.
In Solaris 10, there is a new filesystem called sharefs.
The Following User Says Thank You to h@foorsa.biz For This Useful Post:
varunla (10-18-2011)
Sponsored Links
    #3  
Old 10-14-2011
fpmurphy's Avatar
who?
 
Join Date: Dec 2003
Location: /dev/ph
Posts: 4,430
Thanks: 47
Thanked 358 Times in 332 Posts
Quote:
What is "sharefs"? This is not present in my other Solaris machines.
It is a part of an in-memory file - just like /etc/mnttab. It is no longer a regular file.
    #4  
Old 10-14-2011
Registered User
 
Join Date: Oct 2011
Posts: 3
Thanks: 3
Thanked 0 Times in 0 Posts
Thanks a lot for your reply. Do you mean I cannot change the permission of this in-memory file? If yes, why not?
Sponsored Links
    #5  
Old 10-14-2011
fpmurphy's Avatar
who?
 
Join Date: Dec 2003
Location: /dev/ph
Posts: 4,430
Thanks: 47
Thanked 358 Times in 332 Posts
What are the current permissions and what do you want to change them to? And why?
The Following User Says Thank You to fpmurphy For This Useful Post:
varunla (10-17-2011)
Sponsored Links
    #6  
Old 10-15-2011
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Location: Paris
Posts: 4,146
Thanks: 14
Thanked 401 Times in 369 Posts
Permissions of this file can't be changed as the sharefs pseudo file system is read-only by design.

If you want to (indirectly) modify the content of this file, simply use one of the share, sharemgr, sharectl or zfs commands.
The Following User Says Thank You to jlliagre For This Useful Post:
varunla (10-17-2011)
Sponsored Links
    #7  
Old 10-17-2011
Registered User
 
Join Date: Oct 2011
Posts: 3
Thanks: 3
Thanked 0 Times in 0 Posts
The permissions on the file is 444. I want to remove read permission to group and others. I could change the permission of this file in the ealier patch levels of Solaris 10. I am facing this problem with patch level 10/08.

Could you please tell me, if this was introduced in the recent patch levels? If yes, why?
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
could not able change permission of /home dir expert HP-UX 1 06-24-2010 02:50 AM
Change permission for a set of files karthickrn UNIX for Dummies Questions & Answers 2 06-29-2009 11:54 AM
Permission change query krishmaths UNIX for Dummies Questions & Answers 4 07-19-2008 09:55 AM
Solaris Boot Problems, random messages [/etc/rcS: /etc/dfs/sharetab: cannot create] ranjtech Solaris 9 02-02-2008 07:50 PM
change permission chmod Minguccio75 UNIX for Advanced & Expert Users 2 11-30-2006 03:48 AM



All times are GMT -4. The time now is 06:27 PM.