LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2017, 12:46 AM   #1
floorripper
Member
 
Registered: Oct 2011
Location: Central Europe
Distribution: ubuntu 14.04
Posts: 45

Rep: Reputation: Disabled
Question mout external NAS with ciffs under linux > permission issue


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
I cannot create a text document with rightclick when browsing caja/nautilus.
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:
 drwxrwxrwx 22 majo majo      0 Mar  1 08:40 ./
drwxr-xr-x 43 majo majo   4096 Mar  3 07:41 ../
-
rwx------  1 majo majo 123392 Jan 31 13:52 CV_-_Satara_DE.doc*
-
rwx------  1 majo majo  62464 Mar  1 08:40 CV_-_Satara_ENG.doc*
-
rwx------  1 majo majo  85504 Mar  1 08:40 CV_-_Satara_SK.doc*
drwx------  9 majo majo      0 Mar  2 21:13 dancerobot.eu/
drwx------ 20 majo majo      0 Feb  9 13:43 FLOORRIPPER/
----------  
1 majo majo     70 Oct  6  2015 .~lock.bolesti zaludka.dieta.odt#
-rwx------  1 majo majo  12288 Sep  3  2015 MOTIV_-_motivacny (de).doc*
-
rwx------  1 majo majo  15360 Jan 27 08:29 MOTIV_-_motivacny.doc*
-
rwx------  1 majo majo  10240 Oct 20 12:46 MOTIV_-_motivacny (eng).doc*
-
rwx------  1 majo majo    557 Jul 26  2016 MOTIV_-_Satara_DE.txt*
drwx------  3 majo majo      0 Feb 13 09:39 nove recepty/
drwx------  2 majo majo      0 Feb  8 19:43 PASSWORD-SAFE/
drwx------  3 majo majo      0 Jan 10 11:55 PO_faktury/
drwx------ 11 majo majo      0 Mar  1 08:02 praca/
drwxrwxrwx 20 majo majo      0 Mar  1 08:40 #recycle/
drwx------  4 majo majo      0 Jan  1 11:29 Rodinne fotky a dokumenty/
drwx------  2 majo majo      0 Jan  1 11:29 Schmidt_Dikomix_s.r.o/
drwx------  2 majo majo      0 Jan  1 11:29 scripts/
drwx------  3 majo majo      0 Feb 28 19:22 skolenia_treningy
http://www.linuxquestions.org/questi...1&d=1488523489
Attached Thumbnails
Click image for larger version

Name:	screenshot2.png
Views:	19
Size:	54.5 KB
ID:	24375  
 
Old 03-04-2017, 02:36 PM   #2
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,286

Rep: Reputation: 218Reputation: 218Reputation: 218
I don't understand your question. Open a shell, change to the target directory (can you?)
Code:
cd /home/majo/Documents
then
Code:
touch TestFile
- does that create an empty file named TestFile? If so, open TestFile with your favorite editor: can you enter some text, then save the file? If not, what error do you get, exactly, and when, exactly.
 
Old 03-10-2017, 12:53 AM   #3
floorripper
Member
 
Registered: Oct 2011
Location: Central Europe
Distribution: ubuntu 14.04
Posts: 45

Original Poster
Rep: Reputation: Disabled
I have created the file with touch

Quote:
drwx------ 9 majo users 0 Jan 31 08:10 Terapia Tancom a POPI kostalacie/
-rwx------ 1 majo users 0 Mar 10 07:50 testfile*
d--------- 2 majo majo 0 Feb 16 2016 .Trash-1000/
-rwx------ 1 majo users 13086 Feb 24 12:56 update CV.odt*
drwx------ 2 majo users 0 Jan 1 11:29 Urob si sam/
after I opened edited and saved with GPU editor.
Quote:
drwx------ 2 majo users 0 Jan 1 11:29 scripts/
drwx------ 3 majo users 0 Feb 28 19:22 skolenia_treningy/
drwx------ 8 majo users 0 Feb 7 11:50 Slovania/
drwx------ 6 majo users 0 Jan 1 11:29 Slovensko/
drwx------ 9 majo users 0 Jan 31 08:10 Terapia Tancom a POPI kost
---------- 1 majo users 21 Mar 10 07:52 testfile
d--------- 2 majo majo 0 Feb 16 2016 .Trash-1000/
-rwx------ 1 majo users 13086 Feb 24 12:56 update CV.odt*
drwx------ 2 majo users 0 Jan 1 11:29 Urob si sam/
 
Old 03-11-2017, 02:02 PM   #4
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,286

Rep: Reputation: 218Reputation: 218Reputation: 218
The error tells you you don't have permissions to write in /home/majo/NAS_DOCUMENTS a different directory.
 
Old 03-20-2017, 02:12 AM   #5
floorripper
Member
 
Registered: Oct 2011
Location: Central Europe
Distribution: ubuntu 14.04
Posts: 45

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-20-2017, 03:00 PM   #6
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,286

Rep: Reputation: 218Reputation: 218Reputation: 218
Mr/Ms floorripper: The error in the image attached to your original post tells us that you lack permissions in
Quote:
/home/majo/NAS_DOCUMENTS
but the rest of your message refers to
Quote:
/home/majo/Documents
Is one a link to the other? Or NAS_DOCUMENTS an alias of some kind for Documents?

If they are different names for the same thing, the difference must be the user caja/nautilus is using, that it must lack permissions.
 
Old 03-20-2017, 04:01 PM   #7
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,113

Rep: Reputation: 419Reputation: 419Reputation: 419Reputation: 419Reputation: 419
Quote:
Originally Posted by RandomTroll View Post
Mr/Ms floorripper: The error in the image attached to your original post tells us that you lack permissions in but the rest of your message refers to Is one a link to the other? Or NAS_DOCUMENTS an alias of some kind for Documents?

If they are different names for the same thing, the difference must be the user caja/nautilus is using, that it must lack permissions.
... agreed. I am wondering if there are somehow more than one mount point for your NAS (//192.168.88.245/Documents) ..

It would perhaps be useful seeing the output of :

$ ls -la /home/majo
 
Old 03-21-2017, 01:59 AM   #8
floorripper
Member
 
Registered: Oct 2011
Location: Central Europe
Distribution: ubuntu 14.04
Posts: 45

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-21-2017, 02:05 AM   #9
floorripper
Member
 
Registered: Oct 2011
Location: Central Europe
Distribution: ubuntu 14.04
Posts: 45

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by RandomTroll View Post
Mr/Ms floorripper: The error in the image attached to your original post tells us that you lack permissions in but the rest of your message refers to Is one a link to the other? Or NAS_DOCUMENTS an alias of some kind for Documents?

If they are different names for the same thing, the difference must be the user caja/nautilus is using, that it must lack permissions.

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
/dev/sda7 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
//192.168.88.245/pictures on /home/majo/Pictures type cifs (rw,username=majo,password=passwor,uid=1000,iocharset=utf8)
//192.168.88.245/videos on /home/majo/Videos type cifs (rw,username=majo,password=passwor,uid=1000,iocharset=utf8)
//192.168.88.245/Music on /home/majo/Music type cifs (rw,username=majo,password=passwor,uid=1000,iocharset=utf8)
//192.168.88.245/Documents on /home/majo/Documents type cifs (rw,username=majo,password=passowr,uid=1000,iocharset=utf8)
 
Old 03-22-2017, 02:20 AM   #10
floorripper
Member
 
Registered: Oct 2011
Location: Central Europe
Distribution: ubuntu 14.04
Posts: 45

Original Poster
Rep: Reputation: Disabled
Unhappy

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.
Attached Thumbnails
Click image for larger version

Name:	screenshot2.png
Views:	8
Size:	102.9 KB
ID:	24570  
 
Old 03-22-2017, 02:21 AM   #11
floorripper
Member
 
Registered: Oct 2011
Location: Central Europe
Distribution: ubuntu 14.04
Posts: 45

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Rickkkk View Post
... agreed. I am wondering if there are somehow more than one mount point for your NAS (//192.168.88.245/Documents) ..

It would perhaps be useful seeing the output of :

$ ls -la /home/majo

ls -la posted
 
Old 03-22-2017, 07:00 AM   #12
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,113

Rep: Reputation: 419Reputation: 419Reputation: 419Reputation: 419Reputation: 419
Quote:
Originally Posted by floorripper View Post
ls -la posted
Hi floorripper, thks - permissions on /home/majo/Documents look appropriate. Could you now please:

- 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 ...

Last edited by Rickkkk; 03-22-2017 at 07:07 AM.
 
  


Reply

Tags
mount.cifs, permission denied


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission Issue Writing to NAS Share toxnic Linux - Newbie 1 01-22-2012 08:26 PM
NAS Mount Point Permission Issue? jamieb22 Linux - Security 1 11-09-2011 01:58 AM
Trouble access Linsktstation NAS with Mandriva: permission denied antare Linux - Networking 2 11-18-2008 01:21 PM
NAS shared folder permission problem Alex_trebek Linux - Server 5 10-24-2008 05:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration