09-06-2011
Mods plz close this thread.
Thanks
10 More Discussions You Might Find Interesting
1. Solaris
Hello,
I'm doing a Perl script to parse the dfstab file and find dangerous configurations (rw to everyone, root access, etc). My question is, if I have a share command like this:
share -F nfs -o ro=chrome:copper:zinc,root=chrome /usr/man
it means that the /usr/man is "rw" to everyone... (6 Replies)
Discussion started by: psimoes79
6 Replies
2. Red Hat
I got a problem while creating files on a NFS mounted share in a RHEL box. That is when I create an empty file, this is what appears on the screen
###############################################
E325: ATTENTION
Found a swap file by the name ".test.swp"
owned by: jsmith dated: Tue... (2 Replies)
Discussion started by: rcmrulzz
2 Replies
3. AIX
Hi folks,
Just get my 1st AIX 6.1 servers up and creating some NFS shares without issues.
I can mount it from others AIX 6.1 systems but can't from 5.3. Permissions etc. are OK
lcppa1261 45: pbrun mount lcppa1001:/export/images /mnt
NFS server lcppa1001 not responding still trying... (1 Reply)
Discussion started by: unclefab
1 Replies
4. Solaris
Ok. Here is the situation, I have server A which need to access /tmp folder of server B. Can I mount NFS share (/tmp) from client (serverA)?please let me know (3 Replies)
Discussion started by: sam101
3 Replies
5. UNIX for Advanced & Expert Users
Here is the scenario...
NFS share that is accessed every few minutes by approx 70 systems (AIX 5.3/6.1). Filesystem space is being eaten up rapidly according to df however du numbers really never change. lsof and fuser cannot see any unlinked files on either the NFS server or remote... (3 Replies)
Discussion started by: masterpengu
3 Replies
6. Red Hat
Hi,
I have an NFS server, i want to mount that nfs share which is having around 500GB to my client system. But my client system doesnt have any free space, is it possible to mount that nfs share in my client.
Regards,
Mastan (1 Reply)
Discussion started by: mastansaheb
1 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have created a NFS share in Solaris 10 server1 and mounted it on solaris 10 server 2.But I want to change owner of the files from nobody to a particular user in client.
Which command should I use. I have tried the following but it doesn't allow to change permissions in the server2 as... (0 Replies)
Discussion started by: Rossdba
0 Replies
8. Red Hat
I am having an issue with getting the proper group settings on NFS-shared directories.
NFS server, NFServe, nfs-shares hundreds of project directories...running Solaris 10 latest patches/updates.
SAS server, SAServe, statistical analysis server running on RedHat 7 with latest kernel/patches/etc.... (14 Replies)
Discussion started by: cjhilinski
14 Replies
9. Shell Programming and Scripting
I need a help of good people with effective bash script to mount nfs shared,
By the way I did the searches, since i haven't found that someone wrote a script like this in the past, I'm sure it will serve more people.
The scenario as follow:
An NFS Client with Daily CRON , running bash script... (4 Replies)
Discussion started by: Brian.t
4 Replies
10. IP Networking
My customer has created a share on a Windows Server 2012 system and exported it as a NFS share.
I can mount the share on a SCO system, but I only have read/write access. So I am unable to list the contents of the share. It is as if the directories had 0666 permissions.
My customer says that this... (5 Replies)
Discussion started by: jgt
5 Replies
dup2(2) System Calls Manual dup2(2)
NAME
dup2 - duplicate an open file descriptor to a specific slot
SYNOPSIS
DESCRIPTION
fildes is a file descriptor obtained from a or system call.
fildes2 is a non-negative integer less than the maximum value allowed for file descriptors.
causes fildes2 to refer to the same file as fildes. If fildes2 refers to an already open file, the open file is closed first.
The file descriptor returned by has the following in common with fildes:
o Same open file (or pipe).
o Same file pointer (that is, both file descriptors share one file pointer.)
o Same access mode (read, write or read/write).
o Same file status flags (see fcntl(2),
The new file descriptor is set to remain open across system calls. See fcntl(2).
This routine is found in the C library. Programs using but not using other routines from the Berkeley importability library (such as the
routines described in bsdproc(3C)) should not give the option to ld(1).
RETURN VALUE
Upon successful completion, returns the new file descriptor as a non-negative integer, fildes2. Otherwise, it returns -1 and sets to indi-
cate the error.
ERRORS
fails if the following is true:
fildes is not a valid open file descriptor or fildes2 is not in the range of legal file descriptors.
An attempt to close
fildes2 was interrupted by a signal. The file is still open.
WARNINGS
A multithreaded application or an application with a signal handler can exhibit a race between on one thread and another kernel call that
assigns a new file descriptor while running on a second thread or signal handler. If fildes2 is free before the call was made, the other
thread or signal handler may win the race and acquire that descriptor (e.g., in an call). The thread calling can then close this file and
reuse the descriptor. This results in multiple functions improperly referring to the same file.
This race can be avoided either by ensuring that fildes2 references an open file before calling or by providing user-level synchronization
(or signal disabling) which makes sure that the thread and another thread or signal handler don't make competing calls into the kernel at
the same time.
SEE ALSO
close(2), creat(2), dup(2), exec(2), fcntl(2), open(2), pipe(2), privileges(5).
STANDARDS CONFORMANCE
dup2(2)