LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 12-26-2006, 04:20 AM   #1
OpenVP
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Rep: Reputation: 0
Samba "Access Deny" when writing to share


can some one kindly help me with Samba setup before i go crazy.

this is my smb.conf:


Code:
[global]
	workgroup = HOME
	os level = 20
	netbios name = linuxserver.no-ip.biz
	encrypt passwords = yes
	security = share

[linux]
	comment = Linux Share
	writeable = yes
	public = yes
	read only = no
	write list = saleh,@saleh
	path = /linux
	allow hosts = 192.168.1.2

i can browse this share from my windows XP and red files, but i cany write to it. i get "Access Deny".

folder permission is ok:

[root@saleh ~]# ls -al / |grep linux
drwxrwxrwx 5 saleh saleh 4096 Dec 26 10:12 linux


also in windows my workgroup name is : HOME


also: in the linux server i have the user "saleh" on both /etc/password and samba user file, plus the same user and password on windows.


192.168.1.2 is my windows XP IP
 
Old 12-26-2006, 05:35 AM   #2
mindsport
Member
 
Registered: Apr 2005
Location: Florida
Distribution: Slackware 13.1-64bit / 2.6.33.4
Posts: 45

Rep: Reputation: 17
the path is /root/saleh/linux or /linux? that part is the only thing that looks fishy to me. this is my samba conf if it will help:

Code:
[Linux1]
   comment = 300GB Linux Hard Drive
   path = /home/mind/300gb
   read only = no
   public = yes

[Linux2]
   comment = 70GB Linux Hard Drive
   path = /home/mind/70gb
   read only = no
   public = yes

[Music]
   comment = Music Drive
   path = /home/mind/Warez/Music
   read only = yes
   public = yes
 
Old 12-26-2006, 08:24 AM   #3
OpenVP
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Original Poster
Rep: Reputation: 0
the path is ok. i want to share /linux
i have this permission on this folder:

[root@saleh ~]# ls -al / |grep linux
drwxrwxrwx 5 saleh saleh 4096 Dec 26 10:12 linux


i think the problem is something other then samba (selinux) for example but i have selinux disable and no firewall.
 
Old 12-26-2006, 08:57 AM   #4
OpenVP
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Original Poster
Rep: Reputation: 0
i found the problem

it was selinux

i thoout selinux was disabled on this box but i was wrong ( system-config-securitylevel show me that its disabled)

i had to run this commands:

[root@saleh ~]# setsebool -P smbd_disable_trans 1
[root@saleh ~]# service smb restart
Shutting down SMB services: [ OK ]
Shutting down NMB services: [ OK ]
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
 
  


Reply

Tags
samba


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problem mounting a samba share "CIFS VFS: Send error in SETFSUnixInfo = -5" mrcoffee11 Linux - Software 1 11-07-2006 06:29 PM
shell script to mount samba share with " " in the remote path dohpaz Programming 2 10-20-2006 03:18 PM
Howto: make "/var/lib/mysql " acessable as a samba share for WinXP Pro? canegames Linux - Server 4 10-14-2006 10:50 AM
Samba problem with "add share command" bit128_linux Linux - Software 0 05-23-2006 06:26 AM
Authenticating to Samba share using "Active Directory Server" hlslaughter Linux - Software 36 07-23-2004 11:59 AM


All times are GMT -5. The time now is 06:56 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration