LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-17-2007, 10:06 PM   #1
slackamp
Member
 
Registered: Dec 2005
Distribution: slackware-current
Posts: 86

Rep: Reputation: 16
mount smbfs acl support


hello, i am having a bit of an issue when mounting a samba share with acl support.

samba client is debian
samba server is suse

johndoe is defined in both boxes.
johndoe is a member of smbusr group and it is defined in both boxes.
johndoe CAN access the filesystem when on suse, but when mounted from debian it does not work.

on suse:

$ ls -ld storage
drwxrwx---+ 19 root smbadm 4096 2007-01-17 22:43 storage

$ getfacl /storage
# file: storage
# owner: root
# group: smbadm
user::rwx
group::rwx
group:smbusr:r-x
mask::rwx
other::---

how come this setup does not work? is ACL not supported in smbfs?
 
Old 01-18-2007, 03:07 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Could you demonstrate how it doesn't work. I wonder if at the heart of the problem is that uid numbers on SuSE start at 1000 instead of 500. You may need to have the uid numbers match to have a user on two separate systems truly match the same user. I suspect that you are using user level security and are manually synchronizing Samba users to Linux users with smbclient. I think you may need to also have a users Linux uid match on the two systems.

I think that a domain or ldap based authentication would do this, but you need to do it manually. Don't misunderstand, I'm not suggesting you should use a different model. For a small network, it would be overkill.

Maybe someone else would have better information. Or I might be wrong and entering a password takes care of discrepencies. However, linux acls may be different animals than samba acls and and a little more work is needed to make sure that the linux user matches a samba user.

---

Parenthetically, if you have the kernel source installed, you might want to read the cifs.txt file in the kernel documentation. I seem to remember reading that cifs works better when the remote host is a linux or unix computer. Plus, smbfs may be depreciated in the future in favour of the cifs kernel module.

Last edited by jschiwal; 01-18-2007 at 03:10 PM.
 
Old 01-18-2007, 06:11 PM   #3
xjlittle
Member
 
Registered: Aug 2003
Location: Indiana
Distribution: fc6 sles9 & 10 kubuntu ubuntu-server
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
It looks like you are setting your ACLs with standard ACL calls ie.
Code:
setfacl -m x:xxx:xxx some file or folder
In this case they are a function of the file system-either it supports them or it doesn't. The filesystems that I use for this type of setup are reiser, xfs and ext3. And yes samba will honor the ACLs that are on those file systems.

The first thing that you need to consider is what jschiwal mentioned about different a different uid. Samba, to use it how you want, needs a common id mapping backend. That is to say that any client that opens a share on the server needs to look to that server (or whatever your authenticaton server is)for authentication of that user.

Using ldap is generally the way this is done but as jschiwal also said this overkill for what you want not to mention a steep learning curve.

Side stepping that for a moment, samba can deal with this issue in several ways depending on what you want for security. Perhaps the easiest and most convenient way if security isn't an issue is the chmod the shared directory to 777 and add the following to the smb.conf stanza that creates the share:
Code:
Guest ok = yes
read only = no
After that is to make the server a pdc and the workstation (as far as samba is concerned) a member server. This happens when you join it to the domain. Both of those go beyond the scope of this forum however John Terpstra has written a very easy to read and use tutorial at http://us1.samba.org/samba/docs/man/Samba-Guide.

Now that I've written all of that the thought occurs to me..is the workgroup = whatever in both smb.conf files the same? Is the password the same on both machines? If it's not that could help as well.

hth
 
Old 01-18-2007, 06:22 PM   #4
slackamp
Member
 
Registered: Dec 2005
Distribution: slackware-current
Posts: 86

Original Poster
Rep: Reputation: 16
thats what i thought was the issue so i made the UID's and GID's match as well as the usernames and groupnames. see i just don;t know if smbclient/smbfs supports mounting a share that has acl support. the funny thing is when i map from a windows machine it works.

i am using ext3 everywhere with acl support. workgroup is the same. password is the same. as for security, i basically just want a group of users that can read the share. but i also don't want just anyone reading the share.

i just used smbclient and this works. but when using smbmount or mount -t smbfs it does not work. comes up permission denied.

Last edited by slackamp; 01-18-2007 at 06:50 PM.
 
Old 01-18-2007, 07:41 PM   #5
slackamp
Member
 
Registered: Dec 2005
Distribution: slackware-current
Posts: 86

Original Poster
Rep: Reputation: 16
well it might be debian sarge that is having an issue. i was able to mount and read share from a slackware box.
 
Old 01-19-2007, 05:50 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I would suggest seeing if you have a samba-doc package you can install. If not go to the samba.org website and download the "Samba 3 Reference and HowTo" book. http://us1.samba.org/samba/docs/Samba3-HOWTO.pdf

Chapter 16 deals with windows and posix ACLs.
 
  


Reply



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
help please: mount -t smbfs -a fails as normal user, as root, doesn't mount anything thevic Linux - Networking 11 04-09-2007 03:09 AM
coreutils with acl support Zym0tiC Slackware 1 06-05-2005 07:05 AM
ACL support anamikasoni Red Hat 2 03-21-2005 10:11 PM
ReiserFS and ACL support? technician Linux - Software 2 07-28-2004 06:35 PM
Compile samba with acl-support grubjo Linux - Software 7 07-29-2002 10:44 AM

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

All times are GMT -5. The time now is 09:18 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