Cannot change the permission of /etc/dfs/sharetab


 
Thread Tools Search this Thread
Operating Systems Solaris Cannot change the permission of /etc/dfs/sharetab
# 1  
Old 10-14-2011
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 09:45 AM..
# 2  
Old 10-14-2011
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.
This User Gave Thanks to h@foorsa.biz For This Post:
# 3  
Old 10-14-2011
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
Thanks a lot for your reply. Do you mean I cannot change the permission of this in-memory file? If yes, why not?
# 5  
Old 10-14-2011
What are the current permissions and what do you want to change them to? And why?
This User Gave Thanks to fpmurphy For This Post:
# 6  
Old 10-15-2011
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.
This User Gave Thanks to jlliagre For This Post:
# 7  
Old 10-17-2011
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?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Change permission to a directory

Hi, How do i change the permission to read/write to a windows directory? (1 Reply)
Discussion started by: lg123
1 Replies

2. Shell Programming and Scripting

Change the file permission

Guys, I need help. I need to change the .txt file permission after I have reset the file content to 0. The code that reset the file content to 0 is as follows: #!/bin/sh for i in /root/script/*.txt do echo "0" > $i done However, the file is generated by the apache application,... (3 Replies)
Discussion started by: jasperux
3 Replies

3. UNIX for Dummies Questions & Answers

Change permission for a set of files

Hi there, I want to change from this permission -r-xr-xr-x to -r-xr-xr-- for a set of files under unix. Can someone help me to go-about doing this in one shot. Cheers, RN (2 Replies)
Discussion started by: karthickrn
2 Replies

4. UNIX for Dummies Questions & Answers

Permission change query

I need to change permission for a directory from drwxrwxrwx to drwxr--s--T What chmod command will work? What will be the number code to represent the required permission? (4 Replies)
Discussion started by: krishmaths
4 Replies

5. Solaris

Solaris Boot Problems, random messages [/etc/rcS: /etc/dfs/sharetab: cannot create]

Hello All, I have all of a sudden developed issues with booting up one of my Solaris Servers. Upon a routine reboot, I was faced with the following errors: Feb 1 07:56:44 sco1-au-tci scsi: WARNING: /pci@1c,600000/scsi@2/sd@0,0 (sd0): Feb 1 07:56:44 sco1-au-tci Error for Command: read(10)... (9 Replies)
Discussion started by: ranjtech
9 Replies

6. UNIX for Dummies Questions & Answers

How to change the default permission of a file

I am creating a file using the UTL_FILE command of oracle. This creates a file with the oracle user id. The file does not have permission for being read by any other user id. Is there a way that I can change this default permission. I tried using umask in the .login. Setting the umask to 022 works... (2 Replies)
Discussion started by: reachsamir
2 Replies

7. Solaris

Permission Change Upon Reboot

I have a Sun 4800 running on Solaris 9 OS. Each time I reboot the server the permissions on /tmp are change from root/sys 1777 to root/root 775. This causes a problem as I have custom programs the need this directory set to root/sys. I have search the sun site and can't find a solution. Anybody... (2 Replies)
Discussion started by: gross
2 Replies

8. UNIX for Advanced & Expert Users

change permission chmod

Hi, when I launch my perl script, I write on the shell: perl x.pl How I can can change the permission to write only: x to launch the program? (2 Replies)
Discussion started by: Minguccio75
2 Replies

9. UNIX for Dummies Questions & Answers

DFS in Unix??

Hello All, I was wondering is there something in Unix/Linux that is similar to Distributed File System in Windows. This will help me keep our file servers highly available if one goes down. Thanks, -n (1 Reply)
Discussion started by: Insomniac
1 Replies

10. UNIX for Advanced & Expert Users

Timestamp of File permission change

Hi!! Experts, Is there any way to find the timestamp when the permission of a file was modified?? I mean no change to file contents.. Just the chnage of permissions. :) (1 Reply)
Discussion started by: jyotipg
1 Replies
Login or Register to Ask a Question