mout external NAS with ciffs under linux > permission issue
1 Attachment(s)
hello guys, I am having problem to sucessfuly mount and use my synology NAS. I have mounted it to the /home/majo/Documents but I am having permissions issues.
vi/etc/fstab/ Code:
//192.168.88.245/Documents /home/majo/Documents cifs username=majo,password=mypassword1,uid=1000,gid=1000,iocharset=utf8 0 0 when I create a text document via editor (gedit,pluma) I am able to save it only once with ctr+S. The more changes cannot be written, I got permission issue. I am attaching ls -la to see the permissions (ll) PHP Code:
|
I don't understand your question. Open a shell, change to the target directory (can you?)
Code:
cd /home/majo/Documents Code:
touch TestFile |
I have created the file with touch
Quote:
Quote:
|
The error tells you you don't have permissions to write in /home/majo/NAS_DOCUMENTS a different directory.
|
yes thanks, but how can I fix it please? Where can I fix it? My fstab entry should be correct right?
Might the permissions issue be directly on the synology NAS? thank you |
Mr/Ms floorripper: The error in the image attached to your original post tells us that you lack permissions in
Quote:
Quote:
If they are different names for the same thing, the difference must be the user caja/nautilus is using, that it must lack permissions. |
Quote:
It would perhaps be useful seeing the output of : $ ls -la /home/majo |
yes I am mounting from NAS, VIDEOS, MUSIC and PICTURES to the default ubuntu locations.
drwxr-xr-x 43 majo majo 4096 Mar 21 07:43 . drwxr-xr-x 3 root root 4096 Nov 6 14:54 .. drwx------ 3 majo majo 4096 Nov 18 13:03 .adobe drwxrwxr-x 4 majo majo 4096 Mar 5 17:10 .aMule -rw-rw-r-- 1 majo majo 182 Feb 17 09:47 .asunder -rw-rw-r-- 1 majo majo 82 Feb 17 09:35 .asunder_album_artist -rw-rw-r-- 1 majo majo 24 Feb 17 09:35 .asunder_album_genre -rw-rw-r-- 1 majo majo 173 Feb 17 09:35 .asunder_album_title drwxrwxr-x 3 majo majo 4096 Jan 31 10:07 .audacity-data drwxrwxr-x 2 majo majo 4096 Nov 23 07:19 audio -rw------- 1 majo majo 22024 Mar 20 10:16 .bash_history -rw-r--r-- 1 majo majo 220 Nov 6 14:54 .bash_logout -rw-r--r-- 1 majo majo 3637 Nov 6 14:54 .bashrc drwxrwxrwx 12 majo majo 4096 Jan 10 11:30 BKP_LOKAL drwxrwxr-x 30 majo majo 4096 Mar 21 07:43 .cache drwxr-xr-x 9 majo majo 4096 Feb 17 09:25 .cddbslave drwx------ 30 majo majo 4096 Feb 6 17:39 .config drwx------ 3 majo majo 4096 Nov 6 15:27 .dbus drwxr-xr-x 3 majo majo 4096 Mar 21 07:55 Desktop drwxr-xr-x 5 majo majo 4096 Nov 23 17:59 .dia -rw-r--r-- 1 majo majo 23 Nov 6 15:27 .dmrc drwxrwxrwx 23 majo majo 0 Mar 20 09:17 Documents drwxr-xr-x 10 majo majo 4096 Mar 5 17:17 Downloads drwx------ 2 majo majo 4096 Mar 15 07:47 .filezilla drwxrwxr-x 2 majo majo 4096 Feb 8 09:25 .fonts drwx------ 4 majo majo 4096 Mar 21 07:43 .gconf drwxr-xr-x 24 majo majo 4096 Mar 17 08:40 .gimp-2.8 -rw-r----- 1 majo majo 0 Feb 20 10:40 .gksu.lock drwx------ 3 majo majo 4096 Jan 19 08:15 .gnome drwx------ 2 majo majo 4096 Feb 6 17:39 .gnome2 drwx------ 2 majo majo 4096 Dec 29 21:19 .gphoto drwxrwxr-x 2 majo majo 4096 Dec 18 14:59 .gstreamer-0.10 -rw-rw-r-- 1 majo majo 83 Jan 10 10:46 .gtk-bookmarks -rw------- 1 majo majo 29992 Mar 21 07:43 .ICEauthority drwxrwxr-x 2 majo majo 4096 Nov 10 23:40 .icons -rw------- 1 majo majo 42 Jan 1 13:08 .lesshst drwx------ 3 majo majo 4096 Nov 6 15:27 .local drwx------ 3 majo majo 4096 Nov 18 13:32 .macromedia drwx------ 4 majo majo 4096 Nov 6 15:27 .mozilla drwxrwxrwx 13 majo majo 0 Mar 10 08:58 Music drwxrwxr-x 2 majo majo 4096 Jan 10 11:33 NAS_DOCUMENTS drwxr-x--- 6 majo majo 4096 Feb 20 10:51 .openshot -rw-rw-r-- 1 majo majo 191 Jan 31 08:54 .PhotoFilmStrip drwxrwxrwx 8 majo root 0 Feb 9 15:17 Pictures drwx------ 3 majo majo 4096 Dec 18 15:51 .pki -rw-r--r-- 1 majo majo 675 Nov 6 14:54 .profile drwxr-xr-x 2 majo majo 4096 Nov 6 15:27 Public drwx------ 6 majo majo 4096 Dec 18 17:02 .purple drwx------ 2 majo majo 4096 Jan 1 20:18 .putty drwx------ 2 majo majo 4096 Mar 21 07:52 .pwsafe drwx------ 6 majo majo 4096 Mar 16 16:30 .Skype drwx------ 2 majo majo 4096 Dec 6 11:39 .ssh drwxr-xr-x 2 majo majo 4096 Nov 6 15:27 Templates drwxrwxr-x 2 majo majo 4096 Nov 10 23:40 .themes drwx------ 3 majo majo 4096 Nov 18 13:23 .thumbnails drwx------ 4 majo majo 4096 Dec 2 08:21 .thunderbird drwxrwxrwx 33 majo majo 0 Mar 10 08:56 Videos -rw------- 1 root root 4427 Mar 15 07:08 .viminfo -rw-rw-r-- 1 majo majo 16250 Jan 17 09:22 wp-settings.php -rw------- 1 majo majo 53 Mar 21 07:43 .Xauthority -rw-rw-r-- 1 majo majo 131 Nov 18 13:14 .xinputrc -rw------- 1 majo majo 8194 Mar 21 07:57 .xsession-errors -rw------- 1 majo majo 17912 Mar 20 21:44 .xsession-errors.old |
Quote:
No I was experimenting with the location. At first it was separate NAS_DOCUMENTS, later I have edited my fstab do /home/majo/Documents Code:
majo@notebook:~$ mount |
1 Attachment(s)
Hi guys it is still not working. I have checked the NAS settings for the user majo. He has all privileges granted as read/write.
I have just copied picture from desktop to the mounted folder and lost permissions. It's pretty annoying. I cannot access the file anymore. Do you have any suggestions please? see the attached screen-shot. |
Quote:
ls -la posted |
Quote:
- confirm to which subfolder you are attempting your test copy - confirm if you have tried the same test both with your distro's GUI-based file manager (Nautilus) and using the command line - same results ? - confirm that all of your tests are being done using the same user id (majo, I assume) - from the command line, are you able to create and then delete a new directory in /home/majo/Documents, using the majo user id ? Sorry for all the questions ... :-) For one thing, I am trying to figure out why the permissions on the Documents subfolder are 777 but only 700 (which is somewhat unusual in and of itself...) on the files it contains. Those permissions are restrictive, and any user other than the owner will be unable to even see the files, much less do anything with them ... |
All times are GMT -5. The time now is 09:19 PM. |