NFS mount,can access file directory but cannot edit directory.

Hello every one! Happy what ever makes you Happy this winter season.:wink:

I have a dual boot widowsXP and OpenSuse 13.2 machine. I have a server with OpenSuse 13.2 running SAMBA/NFS together. I have Samba working with all windows machines on the network, and the reason for NFS is for my Linux dual boot machine, and if I put more linux machine on the network later.
I have a little hump to get over and all will be right with the world. I can access the server on my opensuse dual boot machine, but I can’t edit ,create, delete, or etc my directories on the server. I’m sure its something simple it always is.

I used YAST to set up all peramiters in both Samba and NFS. I’m in and out today, and will try to get you all what ever infor you need.

Just a side note. I thought about useing SAMBA for all things networked, but the problem there is with my linux box I can"t even access the shared file directories. I can see the sever, but cant access. Maybe thats and easier route to take than NFS. Just saying.

Thanks
man

You tell you cannot edit, create, delete, etc. but that is only your conclusion (not that I doubt you can’t do tthose things), you do not show anything (like ls -l of a directory ot the like).

Are you sure the ownership and permission on those files permit the user you use to do those things? Remember that using SAMBA will skip all those checks, but NFS is Unix/Linux and will thus apply all security that is native to Unix/Linux.

info requested I set permission on group and users heres the finding of ls-l

hobbyroom:/ # ls-l
total 176
drwxr-xr-x    2 root   root           4096 Dec  5 08:08 bin
drwxr-xr-x    5 root   root           4096 Nov  9 23:20 boot
drwxr-xr-x   20 root   root           4340 Dec 10 09:49 dev
drwxr-xr-x  151 root   root          12288 Dec 10 09:49 etc
drwxr-xr-x    8 root   root           4096 Dec  7 14:30 home
-rw-r--r--    1 root   root            310 Mar 14  2014 java
drwxr-xr-x   13 root   root           4096 Dec  3 09:03 lib
drwxr-xr-x    8 root   root          12288 Dec  7 13:02 lib64
drwx------    2 root   root          16384 Feb 11  2014 lost+found
drwxrwxrwt    4 user01 group1  4096 Nov  7 11:20 media
drwxrwxrwt    9 root   group1  4096 Dec  8 00:50 mnt
drwxr-xr-x    4 root   root           4096 Sep 25 03:12 opt
dr-xr-xr-x  254 root   root              0 Dec 10 03:46 proc
-rw-r--r--    1 root   root          15821 Dec 10 09:48 .readahead
drwx------   35 root   root           4096 Dec 10 10:31 root
drwxr-xr-x   32 root   root            820 Dec 10 09:54 run
drwxr-xr-x    2 root   root          12288 Dec  9 09:40 sbin
drwxr-xr-x    2 root   root           4096 Sep 25 03:12 selinux
drwxr-xr-x    5 root   root           4096 Sep 25 03:12 srv
dr-xr-xr-x   12 root   root              0 Dec 10 03:46 sys
drwxrwxrwt  384 root   root          36864 Dec 10 10:30 tmp
-rw-r--r--    1 root   root          11479 Mar 16  2014 top
drwxr-xr-x+  14 root   root           4096 Sep 17 19:46 usr
drwxr-xr-x   15 root   root           4096 Dec  4 10:07 var
drwxr-xr-x    4 root   root           4096 Nov 12 13:20 windows
hobbyroom:/ # cd /mnt
hobbyroom:/mnt # ls-l
total 44
drwxrwxrwt  8 user2 group1  4096 Dec  9 14:49 user2
drwxrwxrwt 20 user1 group1  4096 Dec  9 14:49 familyshare
drwxrwxrwt 32 user1 group1  4096 Dec  9 13:10 user1
drwxrwxrwx  2 root   root          16384 Sep  6 10:40 lost+found                                               
drwxrwxrwt  7 user3  group1  4096 Nov 29 19:53 user3                                                   
-rw-rw-rw-  1 root   root            989 Dec  7 10:24 mycmds                                                   
drwxrwxrwt 24 user4 group1  4096 Dec  8 08:42 user4                                                    
drwxrw-rw-  4 root   root           4096 Dec  8 00:49 .Trash-0                                                 
hobbyroom:/mnt #                                               

I also checked the #id user info as well all matches between the server and user.
hope this info helps

thanks
man

You do not explain what the mountpoint of your NFS mount is, thus my comment must be a bit in the wild. So either show

cat /etc/fstab

or

mount

(or both)

I wonder why /media and /mnt have the wrong (IMO) owner/group. They should be root/root in both cases.

And of course when you said “I can not…” that is not exact. The system does not know “I”. The system knows users. So which user can not e.g. delete which file. Show an example like:

user1@hobbyroom:dir/in/NFS> ls -l file
user1@hobbyroom:dir/in/NFS> rm file

Sorry for the delay I was at work last night. The /media ownership is so I can run my Flight sim disk in the cdrom as I’m the owner, weird I know, but it works.
The /mnt is where I mount the server. 192.168.1.24 opensuse13.2.

here is #mount.

sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=2019964k,nr_inodes=504991,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
/dev/sda6 on / type ext4 (rw,relatime,data=ordered)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=33,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
/dev/sdb5 on /usr/local type ext4 (rw,relatime,data=ordered)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sda8 on /var type ext4 (rw,relatime,data=ordered)
/dev/sda1 on /windows/C type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/sda7 on /home type ext4 (rw,relatime,data=ordered)
tmpfs on /var/run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,mode=755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)                                            
192.168.1.24:/home on /mnt type nfs4 (rw,relatime,vers=4.0,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.5,local_lock=none,addr=192.168.1.24)                   
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)    
gvfsd-fuse on /var/run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)

I am able to access all file shares on the server, I just can not edit any of the files or save file ie. pictures music etc.

here is #cat /etc/fstab

hobbyroom:/ # cat /etc/fstab                                                                                   
/dev/disk/by-id/ata-SAMSUNG_HD321KJ_S0ZEJ1KP810714-part5        swap    swap    defaults 0 0 
/dev/disk/by-id/ata-SAMSUNG_HD321KJ_S0ZEJ1KP810714-part6        /       ext4    acl,user_xattr 1 1 
/dev/disk/by-id/ata-SAMSUNG_HD321KJ_S0ZEJ1KP810714-part7        /home   ext4    acl,user_xattr 1 2 
/dev/disk/by-id/ata-SAMSUNG_HD321KJ_S0ZEJ1KP810714-part8        /var    ext4    acl,user_xattr 1 2 
/dev/cdrom      /media/cdrom0   udf,iso9660     user,noauto 0 0 
/dev/disk/by-id/ata-WDC_WD3200AAKS-75VYA0_WD-WCARW2608872-part5 /usr/local      ext4    acl,user_xattr 1 2 
/dev/sda1       /windows/C      ntfs-3g defaults,nofail 0 0 
/dev/sdb1       /windows/D      ntfs-3g defaults,nofail 0 0 
192.168.1.24:/home      /mnt    nfs     defaults 0 0 

After your suggestion yesterday i went and changed permissions on the server stil no change.

here is the # /mnt ls-l

hobbyroom:/mnt # ls -l
total 44
drwxrwxr-t  8 user01 groupFamily  4096 Dec  9 14:49 user01
drwxrwxr-T 20 root   groupFamily  4096 Dec  9 14:49 server folder share for the family
drwxrwxr-t 32 user02 groupFamily  4096 Dec  9 13:10 user02 (me)
drwxrwxrwx  2 root   root          16384 Sep  6 10:40 lost+found
drwxrwxr-t  7 user03 groupFamily  4096 Nov 29 19:53 user03
-rw-rw-rw-  1 root   root            989 Dec  7 10:24 mycmds
drwxrwxr-t 24 user04  groupFamily  4096 Dec  8 08:42 user04
drwxrw-rw-  4 root   root           4096 Dec  8 00:49 .Trash-0

hope this is info you need.

Thanks
man

  1. While every system manager can of course do to his/her system as he/she likes, I strongly suggest that you do not change ownership/permissions of file/directories in the system area. Thus /media and /mnt should be as they were created at installation.

  2. /media is used for mounting mass storage devices that are connected to the system by a desktop user. You should not use it for other reasons. The way you use it may brake the capability of the system to mount USB sticks, CDs, Camera devices, etc. for the desktop user.

  3. /mnt may be used to mount mass storage (when no better place is decided upon), but not on /mnt itself, but on directories (mount points) inside /mnt. Using /mnt as mountpoint would result in only one mount there possible. Thus when you want to mount your NFS file system there, you create a directory inside /mnt. You may, when that mount is for s specific user, then make that user owner of that directory.

  4. when you post computer output between CODE tags here, you are supposed to copy/paste the piece of code from your terminal window directly in between the CODE tags. Preferable, the prompt, the command, the output and the next prompt. We trust that we see the unaltered text as your computer created it on your screen. To me it looks as if you did alter things. Columns are not realy nice columns any more. A file name “server folder share for the family” looks very unlikely to me and more. This makes helping difficult if not imposible.

  5. I asked several times which user can not do what. You only say “I can not…”, but there is no “I” in the system. There are users. We must know which user you are loged in as, and what that user does. So please give us at least one example of an action that failed. And not by telling a story, but by doing it on a terminal window on the system and copy/paste that here between code tags. So do not say “I can not delete a file”, but show us something like the example I used earlier, showing the onerwship/permission of the file and it’s parent directory and the statement on itthat fails.

:\OK let me put this clearly for you. The issue is simple! Non of the users on the hobbyroom box can add or delete a folder for example or edit a text file for example on the familyserver. Thats all, users n,j,a, and m just want to be able to save and remove as we please from the familyserver.

All users on the hobbyroom opensuse box can access all files on the server. Thats not the issue, I got that working. OH and, I have changed only the names of the users and the server for personal indenity thats all.
:slight_smile:
Merry Christmas
man

I found it on the inernet finally. It’s was really simple. just change ro to rw on the NFS server. :wink:

thanks
man