LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 10-17-2008, 08:33 PM   #1
Zafoid
LQ Newbie
 
Registered: Sep 2008
Posts: 13

Rep: Reputation: 0
Samba write permissions


I have installed samba on Slackware 12.1 and used the following smb.conf file to set users and permissions;

[global]
workgroup = WORKGROUP
netbios name = SERVER
server string =
syslog = -1;
browseable = Yes
security = share
encrypt passwords = Yes
lock directory = /var/lock
interfaces = 192.168.1.1/24
allow hosts = 192.168.
short preserve case = yes
preserve case = yes
share modes = yes
domain master = yes
local master = yes
prefered master = yes
browse list = yes
os level = 65
name resolve order = wins host
socket options = TCP_NODELAY
deadtime = 1
################################


#################################
#Start of Random Shares Section
#################################

[Data]
path = /home/data
browseable = yes
public = yes
writeable = yes
printable = no
valid users = craig




The issue that I am having is that I can log into the data area and see it on my windows xp box but it "Access is denied" when I try to write data or copy files/folders to it?
 
Old 10-17-2008, 09:15 PM   #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
What are the underlying permissions of /home /data? it needs to be writeable by craig. Any reason why you cant just

chown craig /home/data

?
 
Old 10-18-2008, 12:12 AM   #3
Zafoid
LQ Newbie
 
Registered: Sep 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for the reply,
as I am very new to this I do not quite understand what you are driving at?

Permissions as I set them up should be full access to write and delete as necessary.

Last edited by Zafoid; 10-18-2008 at 12:13 AM.
 
Old 10-18-2008, 12:38 AM   #4
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
You need the underlying *nix permissions on the directory to be compatible with what you want as well.

What does

ls -l /home/datashow?
 
Old 10-18-2008, 06:16 AM   #5
Zafoid
LQ Newbie
 
Registered: Sep 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks

tried

chown craig /home/data

it has now allowed the writting of data to that folder. What does that command do?
 
Old 10-18-2008, 06:24 AM   #6
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
It sets the ownership of the file to user craig.

See http://www.tuxfiles.org/linuxhelp/filepermissions.html fora some ideas on permissions (I just picked a google response to a query for linux file permissions, but it looks OK)
 
Old 10-18-2008, 06:52 AM   #7
Zafoid
LQ Newbie
 
Registered: Sep 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for your help
 
  


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: Write and read permissions atheist Linux - Networking 1 05-04-2008 09:43 AM
no write permissions on samba share lrt Linux - Server 5 04-06-2008 08:39 AM
Samba Write Permissions Cottsay Linux - Software 2 05-13-2007 01:49 PM
Samba directory permissions - can't write from XP ajkrishock Linux - Networking 2 10-16-2005 01:56 PM
Samba write permissions mrsolo Linux - General 2 08-24-2003 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:52 AM.

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