Exportfs command not working


 
Thread Tools Search this Thread
Operating Systems HP-UX Exportfs command not working
# 1  
Old 05-15-2008
Exportfs command not working

Hi All,

Here is one peculiar problem I am facing with exportfs command.

I have exported these following directories in /etc/dfs/dfstab file

/home -access=rx26-156:dhl-6a.digitalindiasw.net
/opt -ro
/dev -access=rx26-156
/etc/opt -root=rx26-156

then after saving the file when I am executing the exportfs command :

# exportfs -a

here is the error I am getting:

/sbin/sh[2]: /home: Execute permission denied.
/sbin/sh[3]: /opt: Execute permission denied.
/sbin/sh[4]: /dev: Execute permission denied.
/sbin/sh[5]: /etc/opt: Execute permission denied.

Please help out
# 2  
Old 05-15-2008
Why arent you using /etc/exports file?
# 3  
Old 05-15-2008
On Solaris, the proper syntax for the /etc/dfs/dfstab file consists of executable lines that begin with the share command.

Like so: share [-F fstype] [ -o options] [-d "<text>"] <pathname> [resource]

Here's an exmaple:

share -F nfs -o rw=@192.168.1.0/24 -d "hostname:/export/d0" /export/d0
# 4  
Old 05-15-2008
Hi All,

1. I am using /etc/dfs/dfstab because in HP-UX v11.31 the /etc/exports file got replaced by /etc/dfs/dfstab

2. Do I have to convert the file systems of the exported directories to nfs file system otherwise it won't work??
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Execute ssh command with additional terminal command to any remote user not working script

Hello i am having an issue with bash script and this is the code now=$(cat hosts1.txt | awk '{print $2;}') while read n ;do ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers' When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies

2. UNIX for Dummies Questions & Answers

Shell script not working but command works in command prompt

Hi everyone I have a problem with my script If I try directly this command /usr/bin/nice -n 19 mysqldump -u root --password="******" wiki_schneider -c | nice -n 19 gzip -9 > /point_de_montage/$(date '+%Y%m%d')-wiki-db.sql.gz It works But if I simply add this command in a script and... (8 Replies)
Discussion started by: picemma
8 Replies

3. Shell Programming and Scripting

Maxdepth command not working in AIX.Need alternative solution for this command

Hi All, I am trying to select 30 days older files under current directory ,but not from subdirectory using below command. find <Dir> -type f -mtime + 30 This command selecting all the files from current directory and also from sub directory . I read some documention through internet ,... (1 Reply)
Discussion started by: kommineni
1 Replies

4. Shell Programming and Scripting

need help awk /etc/exportfs

Need help awk out information from /etc/exports :wall: cat /etc/exports /%filesystem -sec=sys:krb5p:krb5i:krb5:dh,rw,access=server1:server2:server3:server(n+1) I wanted to edit out (-sec ......,access=) remove the colons and replace is with spaces output /%filesystem server1 server2... (2 Replies)
Discussion started by: wittyresponses6
2 Replies

5. AIX

Help on NFS and exportfs

HI guys... Recently I have a request to share an AIX filesystem to a Windows client. Unable to use Samba as this is a production server, and IBM Support does ont support as it is a Third Party application. Not wanting to take the risk, I opt for NFS.. However, reading the pSeries System... (5 Replies)
Discussion started by: mushr00m
5 Replies

6. Shell Programming and Scripting

help with shell script: cp command not working, but mv command works...

Hello. I would like to ask your help regarding the cp command. We are using a cp command to create a back-up copy of our file but to no avail. It's just not working. We already checked the file and directory permissions and all seems correct. We have a script (ftp.script) which calls on... (1 Reply)
Discussion started by: udelalv
1 Replies

7. UNIX for Advanced & Expert Users

exportfs -v and sync option

Dear Friends, I am using Linux system where one nfs share has been configured with rw,sync options. But when I use to check with exportfs -v command it does not show me the sync option I enabled in /etc/exports My doubt is whether I need to use any other command or other options to see... (2 Replies)
Discussion started by: Tlogine
2 Replies

8. Shell Programming and Scripting

Need help! command working ok when executed in command line, but fails when run inside a script!

Hi everyone, when executing this command in unix: echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error. here is content of my script: tdbsrvr$ vi hc.sh "hc.sh" 22 lines, 509... (4 Replies)
Discussion started by: 4dirk1
4 Replies

9. AIX

Exportfs

Hi All I need help here. Some body familiar with the exportfs For AIX5.1, i has exported a /ietelerad/TEST 10.197.6.78 for sharing. At NFS server. $ showmount -e export list for CS72: /ietelerad/TEST 10.197.6.78 $ At NFS Client mount: 1831-011 access denied for... (4 Replies)
Discussion started by: simka
4 Replies

10. UNIX for Dummies Questions & Answers

help on rcp,exportfs

i need some help on remote file copyieng.the queeries are: 1:> m working on a machine say(abc) and i want to copy a directory(yes a directory) from a remote machine. so what would be the command. 2:> do in need to login on the source machine from where i want to copy a directory. 3:> is it... (0 Replies)
Discussion started by: mxms755
0 Replies
Login or Register to Ask a Question