SAMBA : Unable to create the new folder 'New Folder'.

I built a file server according to this tutorial : LinuxPlanet - Tutorials - My First Linux Server, Part 1 - Easy Linux, Easy

I’ve setup all the passwords for the users with the smbpasswd command. I can browse all the SAMBA shared folder from an WinXP system, however as soon as I want to create a subfolder in the shared directory from the WinXP system, I get an error message as follow:

Unable to create the folder ‘New Folder’
Access is denied

I cannot copy any files/folders into the SAMBA shared folders either.
Can someone please assist me with this matter.
Thanks

Probably the permissions on the share are too restrictive. Could you please paste here the contents of the samba configuration file located at /etc/samba/smb.conf and also paste here the return you get from this command in a console window:

ls -l /pathto/directory_containing_the_shared_folder

I don’t want to look into the shared folder, I want to look at the shared folder’s permissions.

The command will show the shared folder and its Linux permissions. The file smb.conf will show the extra permissions constraints imposed on the shared folder by Samba.

Here is the smb.conf file:

smb.conf is the main Samba configuration file. You find a full commented

version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the

samba-doc package is installed.

Date: 2008-06-06

[global]
workgroup = DATAVEST
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
logon path = \%L\profiles.msprofile
logon home = \%L%U.9xprofile
logon drive = P:
usershare allow guests = Yes
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user
passdb backend = smbpasswd

Share disabled by YaST

[homes]

comment = Home Directories

valid users = %S, %D%w%S

browseable = No

read only = No

inherit acls = Yes

Share disabled by YaST

[profiles]

comment = Network Profiles Service

path = %H

read only = No

store dos attributes = Yes

create mask = 0600

directory mask = 0700

Share disabled by YaST

[users]

comment = All users

path = /home

read only = No

inherit acls = Yes

veto files = /aquota.user/groups/shares/

Share disabled by YaST

[groups]

comment = All groups

path = /home/groups

read only = No

inherit acls = Yes

Share disabled by YaST

[printers]

comment = All Printers

path = /var/tmp

printable = Yes

create mask = 0600

browseable = No

Share disabled by YaST

[print$]

comment = Printer Drivers

path = /var/lib/samba/drivers

write list = @ntadmin root

force group = ntadmin

create mask = 0664

directory mask = 0775

[appz]
inherit acls = Yes
path = /seag160gb/appz/
read only = No

[datavest technologies]
inherit acls = Yes
path = /sams80gb/datavest/
read only = No

[drivers]
inherit acls = Yes
path = /wdc80gb/drivers/
read only = No

[entertainment]
inherit acls = Yes
path = /seag160gb/entertain/
read only = No

[games]
inherit acls = Yes
path = /wdc80gb/games/
read only = No

[muziek]
inherit acls = Yes
path = /sams80gb/muziek/
read only = No

Share disabled by YaST

[netlogon]

The second command, i typed in
ls -l /wdc80gb/drivers
and got the reply “total 0”

so i went into the “wdc80gb” folder wich is the position of one harddrive, and type in ls -l | more and got this:

ls -l | more
total 24
drwxr-xr-x 2 root root 4096 2009-06-14 18:38 drivers
drwxr-xr-x 2 root root 4096 2009-06-14 18:38 games
drwx------ 2 root root 16384 2009-06-14 17:31 lost+found

I hope this will give you the permissions. Please let me know if i should paste something different.
Thanks A lot!

These shares are owned by root. But you have joined a normal Linux user to the Samba user database. So that user is attempting to create a new folder in root’s territory, which is not allowed because the permissions are drwxr-xr-x.
owner (root) can read and write
other (samba user) can read only

Despite what Samba allows, the underlying Linux permissions prevent writing by other than root.

If you changed the permissions to drwxrwxrwx, the Samba users would be able to write (which includes to create a folder). So do this in a console:

chmod -R 777 /wdc80gb/games
chmod -R 777 /wdc80gb/drivers

That should fix those two. And you can do that too for other shares. It’s not at all elegant but it’s quick.

Is that what you wanted?

Thanks a million.
i ran the command and can copy or create new folder through the network.