LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-15-2009, 05:04 AM   #1
seh
LQ Newbie
 
Registered: May 2009
Posts: 3

Rep: Reputation: 0
Samba permissions between Windows XP and Fedora 10


Hi all, hope you are good.

I have successfully configured Samba on my Fedora 10 and can see my office networked comps which are on Windows XP. I can access the samba share folders from the XP platform but am unable to either send files to the forlders nor get the files from the forlders. FTP has the same issues. I get 'Access denied' error. This is an issue with permisions. I have made the shares writable but still no solution. I have tried using the chmod but the problem persist. Any solution is much appreciated.

Thanks in advance.
 
Old 05-15-2009, 05:37 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Have a look in fedora's smb.conf and see what notes it has regarding SELinux. This could well be your issue.

A simple test is to temporarily tun SELinux off

setenforce 0

try accessing the shares, and turn it back on (setenforce 1)
 
Old 05-15-2009, 05:44 AM   #3
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,487

Rep: Reputation: 88
Here's my smb.conf that does exactly what you describe you need. I simply created the local mount points in /mnt and made then a+rwx. Please note that this is a "no-security" type config, I just wanted to get things working with the minimum of fuss, I made absolutely no arrangements or concessions (on either side, in XP or Linux) to security - so it can be illustrative, but I wouldn't use it in a risky environment. I use this on my tiny intranet in my house only.

My smb.conf:
Code:
[global]

netbios name = development
workgroup = WORKGROUP
security = share
log file = /var/log/samba.log 
log level =  1
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=16384 SO_SNDBUF=16384 
wins support = yes 
domain logons = no
logon drive = f: 
logon home = \\stefan\%U
os level = 99 
preferred master = yes
local master = yes
hosts allow = 10.0.0.1 10.0.0.3 10.0.0.4 10.0.0.5 10.0.0.6 10.0.0.7 10.0.0.8 10.0.0.9 10.0.0.10 10.0.0.11 10.0.0.11
encrypt passwords = yes
browseable = yes
lanman auth = yes 
lm announce = yes 

[shared]
path = /mnt/win/shared
guest ok = yes 
writeable = yes 
create mode = 0666 
directory mode = 0777
browseable = yes
public = yes
This allows any Windows machine which has one of the IPs listed above, to access the C:\shared folder (as seen from a Windows perspective) when my dual-boot box is in Linux.

Hope this helps!

Last edited by rylan76; 05-15-2009 at 05:46 AM.
 
Old 05-15-2009, 06:59 AM   #4
seh
LQ Newbie
 
Registered: May 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks Billy, it worked.

Regards
 
  


Reply


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
samba pdc blocks write permissions on windows? ferradura Linux - Server 0 10-02-2007 06:57 PM
Samba 3.x file permissions on Windows share lefty.crupps Linux - Software 0 09-07-2006 11:08 AM
Samba Permissions - Windows 98 joshnya Linux - Newbie 0 09-12-2005 10:40 AM
How to change Samba permissions through Windows LJ151 Linux - Networking 4 03-07-2005 08:02 AM
Windows Permissions through SAMBA joshnya Linux - Security 1 12-16-2003 11:48 PM


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