Help - Search - Members - Calendar
Full Version: samba acl support on reiserfs?
MandrivaUsers.org > Advanced Topics > Networking
mudfish
hi all,

i have a mandriva 2007 which has samba installed and a share on its reiserfs partition but i cannot seem to get acl support to work. i don't see any security tabs when i browse the share using the root account on my winxp computer.just wanna ask some questions here and much help is appreciated.

1. is acl supported on reiserfs?
2. is the linux kernel on my system(2.6.17-5mdv) supports acl or do i still have to patch it?
3. or do i have to change it to ext3 or xfs filesystem?

below is my fsstab entry

CODE
/dev/hda1 / ext3 defaults 1 1
/dev/hdc1 /home reiserfs notail,noatime,acl 1 2
none /proc proc defaults 0 0
/dev/hdc5 /tmp ext3 defaults 1 2
/dev/hda6 /usr ext3 defaults 1 2
/dev/hda7 /var ext3 defaults 1 2
/dev/hda5 swap swap defaults 0 0


my smb.conf

CODE
[global]
workgroup = HOME
server string = samba
log level = 3
log file = /var/log/samba/log.%m
max log size = 100
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = No
local master = No
wins support = Yes
nt acl support = yes
[MyShare]
comment = A Shared Drive
browseable = yes
writable = yes
guest ok = no
path = /home/MyShare



need help. help.gif

ianw1974
You configure the security within samba, and it seems you don't have any configured!

You can install swat and use a web browser to configure samba, or alternatively install drakwizard and then use the Mandriva Control Center "Configure Your Computer" to configure samba.
mudfish
hi ian,

added security=user in the globals section on my smb.conf but still no luck.i think security=user is the default so i guess it is not a problem. unsure.gif
ianw1974
Normally when you create the share, you also note which users can gain access to that share and specify the username itself. I don't have samba installed, so can't say the exact config.

You also need to create the user on the Linux system with:

CODE
smbpasswd -a username


replacing username with the user you want.
mudfish
appreciate your reply but it seems my questions has not been answered. sad.gif
ianw1974
Erm, but I answered your question huh.gif

You need to configure samba so that it is secured so that not just ANY user can gain access - which is exactly what you have right now. Or is that not what you want?

Anyway, your ACL stuff is not dependant on reiserfs as far as I can see. This is dependant on your samba configuration. Check out this google search:

http://www.google.co.uk/search?hl=en&q...earch&meta=

loads of people who had the same problem - bound to be some answers there. Although all the ones I read, look that they didn't solve it.

However, if we look at it from a Windows point of view. If your machine is NOT in the same domain as the samba machine, or it is just a workgroup, then the managing of permissions with the security tab will HAVE to be done from the machine running the share - in this instance - the samba server on Linux. If samba HAS been configured as a domain AND the windows computer is a part of the domain, AND you are using a user that has ADMIN capabilities for samba, AND that you created it using the command I gave you before - then providing that samba has ACL enabled then you should see the support.

So, it's not just as simple as enabling ACL support in samba, and expecting the Windows machine to automatically work.
mudfish
QUOTE
However, if we look at it from a Windows point of view. If your machine is NOT in the same domain as the samba machine, or it is just a workgroup, then the managing of permissions with the security tab will HAVE to be done from the machine running the share - in this instance - the samba server on Linux. If samba HAS been configured as a domain AND the windows computer is a part of the domain, AND you are using a user that has ADMIN capabilities for samba, AND that you created it using the command I gave you before - then providing that samba has ACL enabled then you should see the support.


thanks.that should be the reason why i am not seing the security tabs in my windows box..Im off to configuring SAMBA as a PDC now.Does anybody here have a working samba guide to PDC using Mandriva 2007?Again, thank you Ian. thanks.gif
ianw1974
Try this:

http://daniel.fiser.cz/?go=samba

found with a google search - it's not distro specific, it's just samba you need to install and then configure smb.conf correctly. Some options you might want to change to be specific to you like domain name, etc. But it should do the trick.
David Batson
QUOTE (mudfish @ Oct 6 2008, 08:03 PM) *
thanks.that should be the reason why i am not seing the security tabs in my windows box..

To see the security tabs in Windows, then in Windows you either have to turn off "Simple file sharing" or else boot up in SAFE MODE.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.