nfs export problem configuration not correct
Tapas Mishra
mightydreams at gmail.com
Thu Jan 6 05:12:45 UTC 2011
On Wed, Jan 5, 2011 at 2:39 PM, kapil singh kushwah
<kapil.network at gmail.com> wrote:
>
> Tapas,
> still getting the same error after entering * in /etc/exports followed by
> the service restart (/etc/init.d/nfs-kernel-server restart)
> let me know for any other error.
> (check for the portmap on the server. it must be installed or properly
> running.)
> --
> Regards
> Kapil singh Kushwah
> Linux System Administrator
> RedHat Certified Engineer (RHCE)
> Call @ +91-9907514840
>
>
I changed * by IP as you said and I was able to mount the said NFS
folder on client machine.
How ever I was not able to browse its contents
I was able to mount the said nfs share on client machine lets say its
hostname is client_hostname
but I was not able to go inside the mounted folder.
On the client machine
mount -t nfs <IP of server>:/media/vol2 /mnt/nfs
this did worked
but when from client machine I do
cd /mnt/nfs I get permission denied.
When I see a ls -l then I see an owner different than root (infact
username:groupname) shows me client machines hostname
here is out put of said nfs mount on client machine
drwx------ 1 client_hostname client_hostname 20480 2011-01-03 17:43 nfs
on the nfs server which is my laptop the directory which I exported
its permissions are
drwx------ 1 tapas tapas 20480 2011-01-03 17:43 vol2
So thinking that this might be the problem I tried to change the
permissions on nfs-server folder itself
How ever this attempt to change permissions (as root) on the nfs-server failed.
Here is log from /var/log/syslog
Jan 6 10:26:05 tapas mountd[1531]: authenticated mount request from
172.21.100.147:964 for /media/vol2 (/media/vol2)
Jan 6 10:29:11 tapas mountd[1531]: authenticated unmount request from
172.21.100.147:833 for /media/vol2 (/media/vol2)
Jan 6 10:29:25 tapas mountd[1531]: authenticated mount request from
172.21.100.147:852 for /media/vol2 (/media/vol2)
How ever when ever I attach the USB hard disk to my laptop following
are the entries in syslog
Jan 6 10:24:12 tapas ntfs-3g[2278]: Mounted /dev/sdb5 (Read-Write,
label "vol2", NTFS 3.1)
Jan 6 10:24:12 tapas ntfs-3g[2278]: Cmdline options:
rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,dmask=0077
Jan 6 10:24:12 tapas ntfs-3g[2278]: Mount options:
rw,nosuid,nodev,uhelper=udisks,silent,allow_other,nonempty,relatime,fsname=/dev/sdb5,blkdev,blksize=4096,default_permissions
Jan 6 10:24:12 tapas ntfs-3g[2278]: Global ownership and permissions
enforced, configuration type 1
I am not having any clue as what might be the problem or why browsing
is failing in mounted folder?
Does it have any thing to do with the authentication?
More information about the ubuntu-users
mailing list