INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Shared drive locked to home user  (Read 3168 times)

hillcreative

  • World Citizen
  • ***
  • Posts: 124
Shared drive locked to home user
« on: September 28, 2017, 03:21:36 pm »

I have a shared drive from a Windows machine on my Ubuntu 17.04 that encounters errors from MC 23.0.61. MC does not appear to have more than read-only permission. When I look at the shared mounting point there is a small locked icon in the right corner of the shared folder. I have used the usual chmod to try and change privileges for my user but I get an access denied error.

This is what my fstab file looks like:
Code: [Select]
//hillwrk/f /home/mitchell/Media cifs noauto,x-systemd.automount,credentials=/home/mitchell/samba-credentials  0  0
The directory for the mounting point is /home/mitchell/Media
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5234
  • "Linux Merit Badge" Recipient
Re: Shared drive locked to home user
« Reply #1 on: September 28, 2017, 05:44:46 pm »

The samba server sets the permissions that various logins can exercise over the shares.  The most likely issue is that the permissions on the windows samba host are too restrictive for your user.  So you'll need to change the permissions on the windows machine and make sure that the user you're using to login into the share has write permissions.  If you're logging in as a guest, guests don't have write permission by default.
Logged

hillcreative

  • World Citizen
  • ***
  • Posts: 124
Re: Shared drive locked to home user
« Reply #2 on: September 28, 2017, 07:36:11 pm »

The samba server sets the permissions that various logins can exercise over the shares.  The most likely issue is that the permissions on the windows samba host are too restrictive for your user.  So you'll need to change the permissions on the windows machine and make sure that the user you're using to login into the share has write permissions.  If you're logging in as a guest, guests don't have write permission by default.
The Windows machine has permissions for Everyone as full control and the account I'm using is the administrator account. That should be all the permissions the Ubuntu client needs.
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5234
  • "Linux Merit Badge" Recipient
Re: Shared drive locked to home user
« Reply #3 on: September 29, 2017, 08:09:49 am »

If you type "ls -la /home/mitchell/media" into the terminal what's the result?
Logged

hillcreative

  • World Citizen
  • ***
  • Posts: 124
Re: Shared drive locked to home user
« Reply #4 on: September 29, 2017, 08:40:55 am »

If you type "ls -la /home/mitchell/media" into the terminal what's the result?
The result is:
Code: [Select]
ls: cannot access '/home/mitchell/media': No such file or directory
This is strange since the mounting point is there and MC plays the files with no problem. Just occasional error messages about access when tagging files.
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5234
  • "Linux Merit Badge" Recipient
Re: Shared drive locked to home user
« Reply #5 on: September 29, 2017, 08:59:45 am »

Looks like We got caught up in case sensitivity, my fault.  Try "ls -la /home/mitchell/Media" instead
Logged

hillcreative

  • World Citizen
  • ***
  • Posts: 124
Re: Shared drive locked to home user
« Reply #6 on: September 29, 2017, 09:24:37 am »

Result:
Code: [Select]
ls -la /home/mitchell/Media
total 12
drwxr-xr-x  2 root     root     8192 Sep 12 17:13 .
drwxr-xr-x 22 mitchell mitchell 4096 Sep 28 22:35 ..
drwxr-xr-x  2 root     root        0 Apr 24 06:44 Alternative
drwxr-xr-x  2 root     root        0 Jan 23  2017 Art Work
drwxr-xr-x  2 root     root        0 Apr 23 17:59 Blues
drwxr-xr-x  2 root     root        0 Apr 23 17:59 Blues Fixed
drwxr-xr-x  2 root     root        0 Apr 23 17:59 Blues Rejects
drwxr-xr-x  2 root     root        0 Apr 23 17:59 Blues work
drwxr-xr-x  2 root     root        0 Jan 16  2017 Chris Music
drwxr-xr-x  2 root     root        0 Jun  2 12:35 FileHistory
drwxr-xr-x  2 root     root        0 Apr 23 18:10 Grand Touring Radio
drwxr-xr-x  2 root     root        0 Apr 23 18:10 MFRAudio
drwxr-xr-x  2 root     root        0 Apr 23 19:42 MFRMusic
drwxr-xr-x  2 root     root        0 Apr 24 00:28 MikesMusic
drwxr-xr-x  2 root     root        0 Jul 11 18:58 MP3 Master Music
drwxr-xr-x  2 root     root        0 Mar  4  2017 Music Beds
drwxr-xr-x  2 root     root        0 Apr 24 01:43 MusicRips
drwxr-xr-x  2 root     root        0 Aug 20 16:22 MUSIC RIPS
drwxr-xr-x  2 root     root        0 Apr 24 00:52 Music Updates
drwxr-xr-x  2 root     root        0 Apr 24 01:05 Music Work - Alternative
drwxr-xr-x  2 root     root        0 Jan 16  2017 Radio Meltdown
drwxr-xr-x  2 root     root        0 Jan 16  2017 $RECYCLE.BIN
drwxr-xr-x  2 root     root        0 Apr 24 01:45 Road Tunes
drwxr-xr-x  2 root     root        0 Apr 24 01:45 Road Tunes work
drwxr-xr-x  2 root     root        0 Apr 24 03:11 Rommel Backup
drwxr-xr-x  2 root     root        0 Apr 24 04:22 Rommel Radio
drwxr-xr-x  2 root     root        0 Mar  7  2017 SFX
drwxr-xr-x  2 root     root        0 Aug 15 18:09 Short Bus Imaging
drwxr-xr-x  2 root     root        0 Apr 24 06:43 SneakerRadio
drwxr-xr-x  2 root     root        0 Jun 13 20:03 Soul work
drwxr-xr-x  2 root     root        0 Jan 19  2017 System Volume Information
drwxr-xr-x  2 root     root        0 Jul 22 19:37 TM Gold
drwxr-xr-x  2 root     root        0 Sep 28 17:07 WAV Music Master

The directory with the music files is the last one:  WAV Music Master
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5234
  • "Linux Merit Badge" Recipient
Re: Shared drive locked to home user
« Reply #7 on: September 29, 2017, 10:29:48 am »

Ok, part of the problem is that your directory /home/mitchell/Media appears to be owned by root as well as all the files and folders inside.  Is the username in your credentials file "mitchell"?  If not that's almost certainly the issue. 

To work around try adding uid=mitchell to your fstab entry.  If that doesn't work after a reboot, please post the output of "ls -la /home/mitchell/Media" again after the reboot.
Logged

hillcreative

  • World Citizen
  • ***
  • Posts: 124
Re: Shared drive locked to home user
« Reply #8 on: September 29, 2017, 01:17:05 pm »

Ok, part of the problem is that your directory /home/mitchell/Media appears to be owned by root as well as all the files and folders inside.  Is the username in your credentials file "mitchell"?  If not that's almost certainly the issue. 

To work around try adding uid=mitchell to your fstab entry.  If that doesn't work after a reboot, please post the output of "ls -la /home/mitchell/Media" again after the reboot.
Is this the correct way to add uid=mitchell to the fstab file?
Code: [Select]
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=83293930-f264-430b-ac5a-234f3cb54621 /               ext4    errors=remount-ro 0       1
/swapfile                                 none            swap    sw              0       0
//hillwrk/f /home/mitchell/Media cifs noauto,x-systemd.automount,credentials=/home/mitchell/samba-credentials  0  0
/uid=mitchell
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5234
  • "Linux Merit Badge" Recipient
Re: Shared drive locked to home user
« Reply #9 on: September 29, 2017, 03:29:35 pm »

Is this the correct way to add uid=mitchell to the fstab file?
Code: [Select]
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=83293930-f264-430b-ac5a-234f3cb54621 /               ext4    errors=remount-ro 0       1
/swapfile                                 none            swap    sw              0       0
//hillwrk/f /home/mitchell/Media cifs noauto,x-systemd.automount,credentials=/home/mitchell/samba-credentials  0  0
/uid=mitchell

I meant to add it to the list of cmma separated options.  So more like
Code: [Select]
//hillwrk/f /home/mitchell/Media cifs noauto,x-systemd.automount,uid=mitchell,credentials=/home/mitchell/samba-credentials  0  0
Logged

hillcreative

  • World Citizen
  • ***
  • Posts: 124
Re: Shared drive locked to home user
« Reply #10 on: September 29, 2017, 04:31:55 pm »

Results with uid=mitchell added to fstab:
Code: [Select]
ls -la /home/mitchell/Media
total 12
drwxr-xr-x  2 mitchell root     8192 Sep 12 17:13 .
drwxr-xr-x 22 mitchell mitchell 4096 Sep 29 17:28 ..
drwxr-xr-x  2 mitchell root        0 Apr 24 06:44 Alternative
drwxr-xr-x  2 mitchell root        0 Jan 23  2017 Art Work
drwxr-xr-x  2 mitchell root        0 Apr 23 17:59 Blues
drwxr-xr-x  2 mitchell root        0 Apr 23 17:59 Blues Fixed
drwxr-xr-x  2 mitchell root        0 Apr 23 17:59 Blues Rejects
drwxr-xr-x  2 mitchell root        0 Apr 23 17:59 Blues work
drwxr-xr-x  2 mitchell root        0 Jan 16  2017 Chris Music
drwxr-xr-x  2 mitchell root        0 Jun  2 12:35 FileHistory
drwxr-xr-x  2 mitchell root        0 Apr 23 18:10 Grand Touring Radio
drwxr-xr-x  2 mitchell root        0 Apr 23 18:10 MFRAudio
drwxr-xr-x  2 mitchell root        0 Apr 23 19:42 MFRMusic
drwxr-xr-x  2 mitchell root        0 Apr 24 00:28 MikesMusic
drwxr-xr-x  2 mitchell root        0 Jul 11 18:58 MP3 Master Music
drwxr-xr-x  2 mitchell root        0 Mar  4  2017 Music Beds
drwxr-xr-x  2 mitchell root        0 Apr 24 01:43 MusicRips
drwxr-xr-x  2 mitchell root        0 Aug 20 16:22 MUSIC RIPS
drwxr-xr-x  2 mitchell root        0 Apr 24 00:52 Music Updates
drwxr-xr-x  2 mitchell root        0 Apr 24 01:05 Music Work - Alternative
drwxr-xr-x  2 mitchell root        0 Jan 16  2017 Radio Meltdown
drwxr-xr-x  2 mitchell root        0 Jan 16  2017 $RECYCLE.BIN
drwxr-xr-x  2 mitchell root        0 Apr 24 01:45 Road Tunes
drwxr-xr-x  2 mitchell root        0 Apr 24 01:45 Road Tunes work
drwxr-xr-x  2 mitchell root        0 Apr 24 03:11 Rommel Backup
drwxr-xr-x  2 mitchell root        0 Apr 24 04:22 Rommel Radio
drwxr-xr-x  2 mitchell root        0 Mar  7  2017 SFX
drwxr-xr-x  2 mitchell root        0 Aug 15 18:09 Short Bus Imaging
drwxr-xr-x  2 mitchell root        0 Apr 24 06:43 SneakerRadio
drwxr-xr-x  2 mitchell root        0 Jun 13 20:03 Soul work
drwxr-xr-x  2 mitchell root        0 Jan 19  2017 System Volume Information
drwxr-xr-x  2 mitchell root        0 Jul 22 19:37 TM Gold
drwxr-xr-x  2 mitchell root        0 Sep 28 17:07 WAV Music Master
This looks good as it removed the lock icon from the Media folder!
Logged
Pages: [1]   Go Up