centos 64bit Samba Web Administration Tool (SWAT)

Hello experts,

I have installed SWAT (Samba Web Administration Tool) using http://localhost.901/ able to log in and configure the settings. So far I have configured workgroup, netbios name and set up a shared folder. This is all done on centos64bit box.

Now using Windows I am able to see the shared folder and able to log in to it using the user name/password. However I am NOT able to create any files or folders in a new shared folder using a windows system. "You need permission to perform this action."

I can't figure out how to give that user permission to be able to create files inside that folder using Windows. I went as far as putting maximum permission on that folder for everyone: User, Group and Others ... still it will not let me.

Any advice would be highly appreciated.

Thank you.
ezdrtAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Christopher Raymond MendozaConnect With a Mentor Commented:
It occured to me just now, is selinux enabled? Your share is found in the /usr folder, selinux might be stopping samba from writing into that folder.

Also, can you please post the results of following commands:

    ls -lp --lcontext /usr

    cat /etc/passwd | grep testone

    cat /etc/group | grep testone

Thanks.
0
 
Christopher Raymond MendozaCommented:
Hello ezdrt,

Can you post your smb.conf file please.
0
 
ezdrtAuthor Commented:
# Samba config file created using SWAT
# from UNKNOWN (127.0.0.1)
# Date: 2011/10/07 16:31:58

[global]
	netbios name = CENTOSLAPTOP
	server string = Samba Server Version %v
	security = DOMAIN
	log file = /var/log/samba/log.%m
	max log size = 50
	wins support = Yes
	template shell = /bin/bash
	create mask = 0777
	directory mask = 0777

[homes]
	valid users = %S
	read only = No
	browseable = No

[test_share]
	path = /usr/test_share
	valid users = testone
	admin users = testone
	force group = mycircles
	read only = No

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

Open in new window

0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
Christopher Raymond MendozaCommented:
Hello ezdrt,

The same thing happened to a colleague of mine last week. All his samba users have no equivalent linux account.
0
 
ezdrtAuthor Commented:
It looks like there are both Samba and Linux users. I would really appreciate some kind of advice maybe there is a way to check if something is missing, maybe I have not configured rights or maybe check if the users do not mach?
0
 
ezdrtAuthor Commented:
I did ran those commands and here is the output:
[root@centos64bit /]# ls -lp --lcontext /usr
total 140
dr-xr-xr-x.   2 system_u:object_r:bin_t:s0       root    root    36864 Oct 11 03:47 bin/
drwxr-xr-x.   2 system_u:object_r:etc_t:s0       root    root     4096 Nov 10  2010 etc/
drwxr-xr-x.   2 system_u:object_r:usr_t:s0       root    root     4096 Nov 10  2010 games/
drwxr-xr-x.  32 system_u:object_r:usr_t:s0       root    root     4096 Sep 30 09:13 include/
dr-xr-xr-x.  14 system_u:object_r:lib_t:s0       root    root     4096 Sep 30 01:17 lib/
dr-xr-xr-x.  87 system_u:object_r:lib_t:s0       root    root    40960 Oct 11 03:47 lib64/
drwxr-xr-x.  21 system_u:object_r:bin_t:s0       root    root    12288 Sep 30 09:15 libexec/
drwxr-xr-x.  12 system_u:object_r:usr_t:s0       root    root     4096 Sep 30 01:02 local/
dr-xr-xr-x.   2 system_u:object_r:bin_t:s0       root    root    12288 Oct 10 16:06 sbin/
drwxr-xr-x. 159 system_u:object_r:usr_t:s0       root    root     4096 Oct 10 16:06 share/
drwxr-xr-x.   4 system_u:object_r:usr_t:s0       root    root     4096 Sep 30 01:02 src/
drwxrwsr-x.   2 unconfined_u:object_r:usr_t:s0   userone usertwo  4096 Oct  7 12:24 test_share/
lrwxrwxrwx.   1 system_u:object_r:usr_t:s0       root    root       10 Sep 30 01:02 tmp -> ../var/tmp/
[root@centos64bit /]# cat /etc/passwd | grep testone
[root@centos64bit /]# cat /etc/group | grep testone
[root@centos64bit /]# 

Open in new window

0
 
Christopher Raymond MendozaConnect With a Mentor Commented:
Hello ezdrt,

Sorry for the late reply. Based on your last post is selinux is enabled you most probably won't be able to write to the share. Also, testone is not a Linux user, and in effect won't have proper access to the share too.
0
All Courses

From novice to tech pro — start learning today.