anon option in share command


 
Thread Tools Search this Thread
Operating Systems Solaris anon option in share command
# 1  
Old 12-23-2008
anon option in share command

I am facing a problem related to anon option in share command. As I am using this with NIS for central user Administration purpose. I also mounting the home directory of each user from central server. When I give the below command it allow me to give root access (means to create & delete files) to root user on that particular directory mounted on the client side but does not allow any other user to create any file or delete any file on that particular mount point

For e.g

On server side, server hostname is A
I give
# share -F nfs -o anon=0 /girish



On Client side, client's hostname is B
I give
#mount -F nfs A:/girish /mnt

Could anyone tell me where I am missing the things because of which I am not able to implement Cetral user administration as if I give the above commands then users will have read only access on their respective directories which are mounted from central server but I want to give read & write access

As per my understanding if I give the anon=0 it means every users on the client system will have read & write access on that particular directory which is mount from a server

Regards to all
# 2  
Old 12-23-2008
anon=0 is saying that all unknown users will get uid of 0.
try forcing rw options:
Code:
share -F nfs -o rw anon=0 /girish

you may also want to do this on a per-host basis.
Code:
share -F nfs rw,root=host1:host2:host3 /girish

please see the man pages for share_nfs. this explains what you are looking for nicely: share_nfs(1M) - Make local NFS file systems available for mounting by remote systems (man pages section 1M: Maintenance Commands) - Sun Microsystems

Last edited by pupp; 12-23-2008 at 12:39 PM.. Reason: forgot rw,root option :D
# 3  
Old 12-24-2008
Dear PUPP

I gave the following line also

share -F nfs -o rw,anon=0 /girish

But it doesn't help me as I still have only read only access to all users on the client system

I also know " root=host1" option as it only give read write access to root user on the client system

I am looking for a share comand which will help me to give read write access to all users on the client system where /girish directory from server A, is mounted on /mnt of the client system

Regards
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Command option substitution?

Hi folks, I totally dislike asking questions in forums but this one eats up to much of my time I need to spend on other topics. I have a shell-script in which I call a terminal. I want to invoke bash inside the terminal and print a message inside bash with aid of a here document. See... (7 Replies)
Discussion started by: bluntroller
7 Replies

2. AIX

Please share the command to get flash doms on AIX

Hello, Please share the command to get flash doms on aix Best regards, Vishal (12 Replies)
Discussion started by: Vishal_dba
12 Replies

3. Solaris

Fsck command without any option

Dear all, I want to execute fsck command,can i execute fsck command without any option asking for more confidence. Thanks and Regards Monoj Das (1 Reply)
Discussion started by: monojcool
1 Replies

4. Shell Programming and Scripting

How to use a variable as a command option?

I am just learning shell scripting and already I found out I have the bad habit of thinking that it is similar to php or c. I learned some basics and now encountered this problem: On shell it is possible to type: $ date --date="2009-10-10 09:08:34" Sat Oct 10 09:08:34 CEST 2009 ... (2 Replies)
Discussion started by: quinestor
2 Replies

5. Shell Programming and Scripting

Help with data reformat if share share content

Input data: read1_data1 read1_data1 read2_data1 read3_data1 read4_data1 read4_data1 read4_data1 read5_data1 . . Desired output result: read1_data1 read1_data2 read2_data1 read3_data1 read4_data1 (3 Replies)
Discussion started by: perl_beginner
3 Replies

6. HP-UX

who command option not working

Running HP 11.31 on a HP3600. But when I log in as a user the who command works but if I use an option like "who -m" I get nothing. Any thoughts on what is causing this problem. (11 Replies)
Discussion started by: KMRWHUNTER
11 Replies

7. Solaris

Why does the 'ps' command with -u option not working?

How can I use the 'ps' command to view current sessions but only for a given process/user, with the -u parm? In older versions of Unix, this used to work, but not in Sun Solaris. Thanks (4 Replies)
Discussion started by: ElCaito
4 Replies

8. UNIX for Dummies Questions & Answers

using the mount command to connect to a windows share

Until recently I have been using the following command successfully to connect to a windows share: mount -t smbfs -o username=my_username,password=my_password /home/temp //oldserverx1/openexchange But from today, I've been getting the following error: INFO: Debug class all level = 1 (pid... (1 Reply)
Discussion started by: cw1972
1 Replies

9. UNIX for Dummies Questions & Answers

option for ls command

i'm using SunOS 5.7 and I know theres a ls option for seeing what kind of files are in a directory. I was wondering if there was a ls option that could see if the files are txt or files that can be opened in vi (1 Reply)
Discussion started by: eloquent99
1 Replies

10. Shell Programming and Scripting

-c option in ping command

What does '-c' mean in ping command? Is this option specific to bash shell? Deepa (3 Replies)
Discussion started by: Deepa
3 Replies
Login or Register to Ask a Question