LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-22-2007, 09:27 PM   #1
aswinkillua_z
LQ Newbie
 
Registered: May 2007
Location: jakarta
Distribution: OpenSuse 10.1
Posts: 8

Rep: Reputation: 0
Samba Shares become confusing


i have a problem in using samba server ?
the FOLDER include the FILE always READ ONLY. and cannot WRITE

my linux box is using redhat enterprise 9. and my friend used to use the linux box and he has configure it as a server. so i'm trying to learn reconfigure it again as a server. but when i meet samba file sharing. i have some trouble here ..

in other situation i have windows xp client too, which i'm use to try for experiment. THE problem is :

- i'm trying to create new share like sample below :

[data shares]
comment = Data share
path = /shares
guest ok = yes
writeable = yes

then i saved and restart the samba service.
next step i tried from winxp to open the share. and it's open but if i wanted to delete some file or directory or adding new file or directory in my share folder was always failed !!..

but if i looked from my friend's configuration like below :

[shares]
comment = Proxy's Share
path = /var/shares
guest ok = yes
writeable = yes

and if i tried to open the share folder, adding some new folder or file the result is GRANTed .. i can add new file or folder as much as i like ...

different case with my new share folder i've been created ...

configuration on my smb.conf :
[global]
workgroup = SERVERFARM
server string = ProxyServer
printcap name = /etc/printcap
load printers = yes
cups options = raw
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 99
dns proxy = no
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
username map = /etc/samba/smbusers
password server = None
winbind use default domain = no

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
printable = yes

[data shares]
comment = Data share
path = /shares
guest ok = yes
writeable = yes

[shares]
comment = Proxy's Share
path = /var/shares
guest ok = yes
writeable = yes

what is all about, i still don't get it.
is that some effect from permission file or folder .

if we see below :

my folder =>

drwxr-xr-x 3 root root 4096 May 22 08:03 shares

my friend's folder =>

drwxrwxrwx 8 root root 4096 May 23 08:59 shares

CAN ANYONE HELP ME .....
 
Old 05-22-2007, 10:06 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Unless you connect as root (which samba generally disallows) you won't be able to write in there as that user won't have write permissions.
 
Old 05-22-2007, 10:08 PM   #3
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 449

Rep: Reputation: 34
Permissions issue on the directory.

Add these 2 directives to your share definition:
Code:
guest user=nobody
force user=nobody
And run this command as root:
Code:
chown -R nobody:nobody /shares
Restart Samba and you should be OK
 
Old 05-22-2007, 10:28 PM   #4
aswinkillua_z
LQ Newbie
 
Registered: May 2007
Location: jakarta
Distribution: OpenSuse 10.1
Posts: 8

Original Poster
Rep: Reputation: 0
guys i have found the answer

i just make => #chmod 777 /shares/

and result is work..

but it works at 1 server (using REDHAT) and client (using winxp)

my experiment is connected with win98 clients

if i have some trouble again

have your guideance please
 
Old 05-22-2007, 10:33 PM   #5
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 449

Rep: Reputation: 34
chmod 777 is the solution to many many many problems; as long as you don't care about security
 
Old 05-22-2007, 10:47 PM   #6
aswinkillua_z
LQ Newbie
 
Registered: May 2007
Location: jakarta
Distribution: OpenSuse 10.1
Posts: 8

Original Poster
Rep: Reputation: 0
yeah i know it...

but i need to open up the file because it's important ...and it just for my experiment.

but for a main server purpose i won't open the access ....
 
  


Reply



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
Some confusing Samba problems..... help? Irf Linux - Networking 7 05-15-2004 02:16 PM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 05:28 PM
Mounting Samba shares and Samba Share Login time112852 Linux - Software 1 09-14-2003 02:23 PM
Samba Corruption Confusing (EMERGENCY) mikeyt_333 Linux - Networking 1 05-30-2002 01:48 PM
Samba stuff - never used it before...very confusing...help! Thymox Linux - Networking 1 10-08-2001 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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