Link to home
Start Free TrialLog in
Avatar of BAJ05
BAJ05Flag for France

asked on

samba NT_STATUS_ACCESS_DENIED

I have a shared folder /shared/berndwhere /shared and /shared/bernd both are read/write enabled for everyone. I can mound the directory under WindowsXP. XP tells me it is a NTFS file system. Now my problem: I can't create files/folders etc because I have no rights.

What do I have to do to get write permissions?????


testparm smb.conf gives the following output.

Load smb config files from smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[bernd]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
        workgroup = ROTHMAN
        server string = Samba Server
        username map = /etc/samba/smbusers
        log file = /var/log/samba/%m.log
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        printcap name = /etc/printcap
        dns proxy = No
        idmap uid = 16777216-33554431
        idmap gid = 16777216-33554431
        cups options = raw

[homes]
        comment = Home Directories
        read only = No
        browseable = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        browseable = No

[bernd]
        path = /shares/bernd
        valid users = adm, bernd
        read only = No
Avatar of grsteed
grsteed

Is that the entire output?  What Samba version do you have. When I issue that command I get over 250 lines for the Global section alone.

It doesn't show what "security" setting you have. From the manpage for smb.conf (Samba 2.2.5)

"If  your  PCs use usernames that are the same as their usernames on the UNIX machine then you will want to use security  =  user. If  you  mostly  use  usernames that don't exist on the UNIX box then use security = share.

You should also use security = share if you want to mainly setup shares without a password (guest shares). This is commonly used for a shared printer server. It is more difficult to setup guest shares with security = user, see the map to guest parameter for details."

Gary
Also, your settings,

[bernd]
        path = /shares/bernd
        valid users = adm, bernd
        read only = No

This is limited to only users adm and bernd. Is that the user that you're using?

Gary


Avatar of BAJ05

ASKER

I am using FC4, freshly installed with a complete install, updated through GUI such that no more updates are possible. SAMBA version is 3.0.14a-2.
Please let me know if you need any further information (also maybe provide how I could get that information). The output from testparm is complete. I used the GUI to modify the samba settings. The security level is user. Password encryption is on. Permissions are Read/Write.
Have a look at this link and see if it helps.

http://www.fedoraforum.org/forum/showthread.php?t=14324

basically he ran the "smbclient -e <username>" command and added the "smb passwd file = /etc/samba/smbpasswd" line in his smb.conf file.

Gary
Avatar of BAJ05

ASKER

So this didn't work, maybe I can attract more information with more points???
ASKER CERTIFIED SOLUTION
Avatar of grsteed
grsteed

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BAJ05

ASKER

Ok that did the trick: to be more specific the last entry in the above link states that SElinux is the cause of the problem.
Under Desktop->System Settings->Security Level there are entries for SELinux and SAMBA. Once they are changed it is working....
Great!!!  Good to hear!!

Gary