LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-07-2015, 06:59 PM   #1
Miati
Member
 
Registered: Dec 2014
Distribution: Linux Mint 17.*
Posts: 326

Rep: Reputation: 106Reputation: 106
Samba owner/group permissions different client/server


I have a samba directory which is acting strange after I reimaged my Raspberry Pi (Raspbian)
On the directory (server) the permissions are as follows (owner:group-octalperm)
Code:
miati:miati-755
On the client side it shows
Code:
pi:pi-755
(I'm using a Raspberry Pi client side)

Why is this? I mount the samba directory as my user (miati) and then it claims pi is the owner.
I am unable to change the permissions client side (even with root) but can change them server side (makes sense)
It is a locked directory (config below) with only the user "home" permitted. The credentials are in a file that in read in miati's home directory mounted on boot with fstab. Permissions are fine to access file.
I'd like to be able to set the owner and group to something predictable so I can modify the permissions. Ideally I want to remove the pi user from being owner/group at all.

Code:
Fstab
//192.168.1.99/files /mnt/files cifs credentials=/home/miati/credentialfile,ro 0 0
Code:
samba config
[files]
comment = Files
path = /dir/to/files/
guest ok = no
read only = no
browseable = yes
valid users = home
security = user

Last edited by Miati; 03-07-2015 at 07:02 PM.
 
Old 03-07-2015, 07:36 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,408

Rep: Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775
Quote:
//192.168.1.99/files /mnt/files cifs credentials=/home/miati/credentialfile,ro 0 0
Try adding the option 'uid=miati' i.e.
Code:
//192.168.1.99/files /mnt/files cifs credentials=/home/miati/credentialfile,uid=miati,ro 0 0
 
Old 03-07-2015, 10:21 PM   #3
Miati
Member
 
Registered: Dec 2014
Distribution: Linux Mint 17.*
Posts: 326

Original Poster
Rep: Reputation: 106Reputation: 106
Well this is interesting. It changed the owner of the folder from pi to miati.
However, despite my username being the owner I cannot access the directory if the permissions are 750! (opposed to 755)
Was
Code:
pi:pi-755
->
miati:pi-755
That doesn't make sense..?
If my username is the same, shouldn't I be the owner and be able to access the files? Especially since it's mounted with my UID?
It seems like it's treating my user as though it belongs in the "world" category rather then "owner"

Last edited by Miati; 03-07-2015 at 10:23 PM.
 
Old 03-07-2015, 11:45 PM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,408

Rep: Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775
Quote:
valid users = home
Try
Code:
valid users = miati
Perhaps this will help.
 
  


Reply


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
ACLs - Mask - permissions defined in the owner and owning group entries deoren Linux - Server 3 04-14-2017 01:29 AM
Force owner, owner group, permissions... leamassiot Linux - General 8 03-13-2014 04:40 AM
What is .gvfs? Owner is ?, group ?, permissions are ?????????, size is ? 809areacode Linux - General 1 08-19-2011 12:02 PM
samba roaming profiles directory owner and permissions checkmate3001 Linux - Server 4 08-14-2008 06:22 AM
/etc/mtab has bad permissions/owner/group on Ubuntu Edgy ImpactDNI Linux - Software 1 11-08-2006 06:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:36 PM.

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
Open Source Consulting | Domain Registration