LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-02-2015, 02:43 PM   #1
jnoake
LQ Newbie
 
Registered: Jan 2009
Posts: 24

Rep: Reputation: 11
Samba, Dolphin client - User,Owner and permissions


To the point -
On a linux samba client (4.1.6-201.fc22), Dolphin, browsing a samba share does not show the real 'Permissions,Owner,User Group'
it shows all FOLDERS as drwxr-xr-x fred fred
and sows all FILES as -rwxr--r-- fred fred
(current user is fred)

More information;
I have Samba server installed on Fedora 3.19.8-100.fc20.
the relevant smb.conf sections follow:

Code:
[global]
        workgroup = WORKGROUP
        server string = Samba Server Version %v
        hosts allow = 127. 192.168.55.0/255.255.255.0
        log file = /var/log/samba/%m.log
        max log size = 50
        security = user
        map to guest = Bad User
        preferred master = yes
        wins support = yes
        restrict anonymous = yes
        domain master = yes
        logon home = \\%25N\%25U
        logon path = \\%25N\%25U\profile
        client ntlmv2 auth = yes
        client plaintext auth = yes
        client lanman auth = yes
        lm announce = Yes

[upload]
        comment = Files will be re-named and moved to the Media Library. Junk will be deleted.
        path = /var/shared/upload
        writable = yes
        hide dot files = no
        valid users = fred, bob
        create mask = 0640
        directory mask = 0750
        force group = upload
fred and bob are both members of group upload.

For the most part this works as I expect, fred and bob can both create files and folders that the other can read but not write to or delete.
Creating files/folders and then looking at the servers file system shows the expected user, group and permissions.

Can this be explained?
Can I fix it?
 
Old 10-03-2015, 03:32 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Did you set /var/shared/upload ownership yet? Linux system permissions take precedence over Samba permissions.

Reference:
http://www.cyberciti.biz/tips/how-do...ba-shares.html

Code:
chgrp upload /var/shared/upload && chmod g+s /var/shared/upload
 
1 members found this post helpful.
Old 10-03-2015, 08:55 AM   #3
jnoake
LQ Newbie
 
Registered: Jan 2009
Posts: 24

Original Poster
Rep: Reputation: 11
Dolphin still lies about permissions and ownership

Thanks ferrari, for your reply.

I had not done this, but the share was still accessible.
I have now run this command - I can see the sense, but it has not changed the observed behaviour of the Dolphin/samba client.

Dolphin is still lying about the permissions and ownership within the share.

Interestingly, Windows shows the permissions correctly which implies that it is not a samba server problem, but a samba client or Dolphin problem.

I will install and try some other file managers and see what they report.

Last edited by jnoake; 10-03-2015 at 09:01 AM. Reason: Formatting
 
Old 10-03-2015, 09:38 AM   #4
jnoake
LQ Newbie
 
Registered: Jan 2009
Posts: 24

Original Poster
Rep: Reputation: 11
Update

Krusader shows the same as Dolphin.

but...

If I mount the samba share and navigate to it using Konsole, I can see the numeric user and group ID's (which are valid on the server, obviously not on the client) and the permissions are also correct.

... so it is not like the smb client is not potentially providing the information to file managers.
 
Old 10-03-2015, 05:04 PM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
I think that is normal. Unix permissions are not the same as Samba permissions. I can only relate to a remote share I need access for work. If I examine directory and file permissions via my Dolphin file manager, I get 'User: dean, Group: users'. This is regardless of who created the directories/files. My samba username is different as well.

This might help answer some of the confusion about expected permissions
https://www.samba.org/samba/docs/man...sControls.html

My apologies if I don't get what you're trying to convey.
 
  


Reply

Tags
dolphin, permissions, samba



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
Samba owner/group permissions different client/server Miati Linux - Networking 3 03-07-2015 11:45 PM
Force owner, owner group, permissions... leamassiot Linux - General 8 03-13-2014 04:40 AM
Some folders created in Samba share get nobody as owner, rather than forced user anon091 Linux - Server 0 12-07-2013 07:45 PM
how to automount usb drives with user owner and user r/w permissions mike11 Linux - Newbie 1 11-19-2009 02:59 PM
samba roaming profiles directory owner and permissions checkmate3001 Linux - Server 4 08-14-2008 06:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:36 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
Open Source Consulting | Domain Registration