11-05-2002
If you have this file on your box, then it is a local filesystem that you wish to export for other hosts to see it. You will need to put other hosts' names in the file afterwards separated by commas then run exportfs to complete the export.
Do a man exportfs and exports for more info and syntax.
![Cool Smilie](https://www.unix.com/images/smilies/cool.gif)
7 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Setting up nfs on a redhat ES 4 gives me following issue that i
can't explain.
My nfs was working perfect whith following /etc/exports on the server
/home/test/nfstest 198.9.200.227(rw,sync,no_root_squash)
But after a powerloss and restart of the server it only works with the... (0 Replies)
Discussion started by: progressdll
0 Replies
2. UNIX for Dummies Questions & Answers
Dear expert,
My .bash_profile contain the following lines:
# User specific environment and startup programs
export CFLAGS="-I $HOME/.libstree/include";
export LDFLAGS="-L $HOME/.libstree/lib";
export LD_LIBRARY_PATH=/home/ewijaya/MyBioTool/libstree-0.4.2/lib:${LD_LIBRARY_PATH}
export... (1 Reply)
Discussion started by: monkfan
1 Replies
3. Shell Programming and Scripting
Dear expert,
My .bash_profile contain the following lines:
# User specific environment and startup programs
export CFLAGS="-I $HOME/.libstree/include";
export LDFLAGS="-L $HOME/.libstree/lib";
export LD_LIBRARY_PATH=/home/ewijaya/MyBioTool/libstree-0.4.2/lib:${LD_LIBRARY_PATH}
export... (1 Reply)
Discussion started by: monkfan
1 Replies
4. Programming
Is it possible to view all the functions exported by a given object file?
"dump -tv" comes the closest, but what exactly am I looking for to determine whether the symbol exists in the object file?
Essentially, I have a library that requires a call to "xdr_sizeof" and the compile is failing... (5 Replies)
Discussion started by: DreamWarrior
5 Replies
5. AIX
Why can I not add more than 1 filesystem to the /etc/exports file and export them via smitty, or command line?
I have tried, I stopped the NFS daemons, edited the /etc/exports file by hand, saved it, then re-started NFS, but it only still exports the first line in the exports file.
... (4 Replies)
Discussion started by: mrmurdock
4 Replies
6. SCO
Hello everyone!
I have two systems: an old SCO 5.0.5 Openserver (here's the uname -a output):
/# uname -a
SCO_SV munixela 3.2 5.0.5 i386
And a SCO 5.0.7 OpenServer (uname -a output):
/# uname -a
SCO_SV catedral 3.2 5.0.7 i386
I exported a Filesystem from the 5.0.7 machine, using the... (13 Replies)
Discussion started by: superchivo
13 Replies
7. UNIX for Dummies Questions & Answers
Hi guys, I was asked to perform the following:
On server usdfslpsap04 following NFS mounts should be disabled
usdfslpwmt3:/u01/opt/wm6_data/ebiz_edi/CALIBER_data
50412232 13369544 34481872 28% /u01/opt/wm6_data/ebiz_edi/CALIBER_data
usauxoradw:/DWH/Transfer/current... (1 Reply)
Discussion started by: 300zxmuro
1 Replies
LEARN ABOUT ULTRIX
exportfs
exportfs(2nfs) exportfs(2nfs)
Name
exportfs - exports an NFS file system
Syntax
#include <sys/mount.h>
exportfs(name, rootuid, exflags)
char *name;
int rootuid, exflags;
Description
The system call allows the specified local file system to be mounted remotely by an NFS client. This system call is usually called from
Security on the exported file systems can be improved by setting the root mapped user ID, rootuid, and two mount structure flags, exflags
for the local file system, name.
The name argument is a pointer to a null-terminated string containing the path name of the file system being exported.
The rootuid argument is used to set the user ID that root maps to. By default, root maps to user id -2.
The exflags argument contains the flags that are to be set in the mount structure corresponding to name. The following flags are the only
possible flags accepted by
#define M_NOFH 0x1000 /* no fhandle flag */
#define M_EXRONLY 0x2000 /* export read-only */
Setting the M_NOFH flag does not allow access to the fhandle of the file system's root gnode. The M_EXRONLY flag exports a filesystem read
only.
The system call returns a value of 0 upon successful completion of a operation, and -1 upon failure.
Diagnostics
[EPERM] Not superuser.
[EIO] Not enough memory in the system to service the request.
[EFAULT] Bad address or bad length of name.
[ENOENT] The name cannot be found.
See Also
exports(5nfs), mountd(8nfs)
exportfs(2nfs)