02-28-2018
Hi, can't you make user Joe known on server A ? With this approach you remove security and make everyone uid 500 with gid 500 when writing or reading from the NFS share.
That said, for this to even work, it seems to me the export should be reversed, so server B should export to server A.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Just as the subject asks :) Thanks!
hellz (2 Replies)
Discussion started by: hellz
2 Replies
2. Solaris
I have a truble with NFS mount.
When i mount remote dir, then all permissions changes!
For example:
# mkdir /data
# mount 10.1.1.100:/var/data /data
# ls -l /data
drwxr-xr-x 7 nobody nobody 5632 Oct 22 14:55 file1
drwxr-xr-x 4 nobody nobody 512 Oct 22 14:55... (4 Replies)
Discussion started by: jess_t03
4 Replies
3. UNIX for Dummies Questions & Answers
Hi,
out of curosity this question just popped in my mind. Is there any way to find out the uid and gid of the running process ?
If i do a ls -l of a program then it shows the uid/gid bit (if its set). I want to see as which user/group the program is running ..... is there any way to know this... (2 Replies)
Discussion started by: ankurjain
2 Replies
4. UNIX for Advanced & Expert Users
Hi,
can somebody tell me how to make directoriy in which all files will be generated as dir owner ?
I'm able to add GID for directory group and files have group id like folder , but when i do same for user files still are created as user which creates them :(
drwsrwsrwx 2 flexbul ... (2 Replies)
Discussion started by: pp56825
2 Replies
5. Filesystems, Disks and Memory
hello
i wanted to ask you
i try to setting:
pc server name: A
pc user name: B
pc user name: C
server A is opensuse 11.2 with kde 4.3.5 and last kernel
so i create NFS server, i think.. folder (/usr is all softwares and library) because
server A can share to PC A.
because all... (0 Replies)
Discussion started by: tunjin
0 Replies
6. UNIX for Advanced & Expert Users
I´m listing the contents of a directory using the command
ls -lI get numeric uid and gid for some lines.
example:
drwxr-xr-x root root 1970-01-01 01:00 sys
-rw-r--r-- 501 20 0 2010-08-04 14:54 shutdown.bravo.rc
drwxr-x--- 501 20 ... (5 Replies)
Discussion started by: flocki
5 Replies
7. Shell Programming and Scripting
Hi,
I am new to scrippting need little help, I would like to change uid, gid of exisisting user,
example
User A current uid=1,gid=2 would like to change uid=4,gid=5
I know the command to change uid,gid but after changing I have to change permissions on folders also which are belonging... (3 Replies)
Discussion started by: manoj.solaris
3 Replies
8. UNIX for Dummies Questions & Answers
Present
/home/dsadm# id dsadm
uid=0(root) gid=0(root)
----------------------------------
needs to be
/home/dsadm> id dsadm
uid=23186(dsadm) gid=16284(gdstage)
Please provide the command/steps for the above uid, gid value change
Thanks in advance for all your support .
... (3 Replies)
Discussion started by: sridhardwh
3 Replies
9. UNIX for Dummies Questions & Answers
I'm trying to set up a folder in my home directory that will be shared with another user but for some reason it is not working this is what I've done, I have tried two different ways using ACL's and chown/chgrp etc
I set up a group called say: sharedgroup and added both my user (john) and fred... (3 Replies)
Discussion started by: 14952john
3 Replies
10. AIX
Hi Everyone,
We are encountering the following issue on AIX 5.3. When we do ls -ltr the list displays only user id and group id instead of user name and group name.
This is happening for all users except root. Whe we do ls -ltr with root user it shows perfectly fine.
When we searched... (25 Replies)
Discussion started by: madhav.kunapa
25 Replies
LEARN ABOUT MOJAVE
nfssvc
NFSSVC(2) BSD System Calls Manual NFSSVC(2)
NAME
nfssvc -- NFS services
SYNOPSIS
#include <unistd.h>
#include <nfs/nfs.h>
int
nfssvc(int flags, void *argstructp);
DESCRIPTION
The nfssvc() function is used by the NFS server daemon to pass information into and out of the kernel and also to enter the kernel as a
server daemon. The flags argument consists of several bits that show what action is to be taken once in the kernel and the argstructp points
to any corresponding data that the action may require.
nfssvc() is called with the flag NFSSVC_NFSD and a NULL argstructp to enter the kernel as an nfsd(8) daemon. The NFSSVC_NFSD action normally
does not return until the NFS server is stopped.
The nfsd(8) server daemon calls nfssvc() with the flag NFSSVC_ADDSOCK and a pointer to a
struct nfsd_args {
int sock; /* Socket to serve */
caddr_t name; /* Client address for connection based sockets */
int namelen; /* Length of name */
};
to pass a server side NFS socket into the kernel for servicing by the nfsd(8) daemons.
The nfsd(8) server daemon calls nfssvc() with the flag NFSSVC_EXPORT and a pointer to a
struct nfs_export_args {
uint32_t nxa_fsid; /* export FS ID */
uint32_t nxa_expid; /* export ID */
char *nxa_fspath; /* export FS path */
char *nxa_exppath; /* export sub-path */
uint32_t nxa_flags; /* export arg flags */
uint32_t nxa_netcount; /* #entries in ex_nets array */
struct nfs_export_net_args *nxa_nets; /* array of net args */
};
to pass exported file system information into the kernel.
RETURN VALUES
Upon successful completion, a value of 0 is returned. Otherwise, -1 is returned the global variable errno is set to specify the error.
ERRORS
[EPERM] The caller is not the super-user.
[EINVAL] The action specified by the flags argument was not valid.
[EFAULT] argstructp points to an invalid address.
[ENOMEM] A memory allocation failure prevented the action from completing.
[EEXIST] An attempt was made to add a UDP socket via the NFSSVC_ADDSOCK action, but the UDP socket has already been added.
SEE ALSO
nfsd(8)
HISTORY
The nfssvc function first appeared in 4.4BSD.
BUGS
The nfssvc system call is designed specifically for the NFS server daemons and as such is specific to their requirements. Several fields of
the argument structures are assumed to be valid, such that nfssvc must be used with extreme care.
BSD
January 9, 2007 BSD