LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-16-2013, 05:57 AM   #1
dubdot
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Rep: Reputation: 0
Samba - Can't give WinXP write access to Debian


Fresh Debian install (no GUI) to use for Apache, PHP and MySQL. All I need is read and write permission to Apache's www folder from XP Home computers without having to enter a user/pass for access.

Samba gives me access to the folder and I can open the files, but I can't save files to it. That gives me this error:

File operation failed.
\\Debian\Apache\index.html
Access is denied.

My Samba config file is unchanged from install aside from this stuff I've seen in various tutorials and added:

[global]
security = share
guest account = nobody
hosts allow = 127.0.0.1 192.168.1.0/24

[Apache]
comment = Apache folder
path = /var/www
read only = no
guest ok = yes
public = yes
browsable = yes

Again, I'm able to access the files on Debian using WinXP Home, but I don't have write access.
 
Old 02-16-2013, 08:01 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,930
Blog Entries: 28

Rep: Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353
What are the permissions on Apache directory itself?

The directory you want to share not only must be be specified in smb.conf, it must also be set to be shared in the directory permissions.
 
Old 02-17-2013, 02:01 AM   #3
dubdot
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks! The tutorials I read didn't exactly make it clear that I had to do this.

chmod -R 0777 /var/www

That allows folder access, read and save files from the XP machine.
 
Old 02-17-2013, 07:49 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,930
Blog Entries: 28

Rep: Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353
Cool. (Experience is a great teacher.)

Last edited by frankbell; 02-17-2013 at 07:53 PM.
 
  


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
When to give write access to folders on a web server jamesbon Linux - Security 2 02-03-2011 06:18 PM
Give user write access to htdocs kvnband Linux - Security 9 12-30-2005 01:35 PM
how to give a nonroot user write access Kilahchris Linux - Newbie 8 05-11-2005 02:10 AM
How to give a drive write access to all users in FSTAB? (ext3) jon_k Linux - Software 2 12-19-2004 09:46 PM
WinXP give me some net access BACompTech Linux - Networking 2 09-22-2004 01:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:15 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
Open Source Consulting | Domain Registration