LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-31-2005, 01:09 PM   #1
crazykiller
Member
 
Registered: Sep 2005
Posts: 58

Rep: Reputation: 15
Samba Shares... Write Error


Im trying to create a SAMBA share on my SuSe 9.3 Server... My Linux box acts as a router and a internet access point. Im trying to create a samba share that all the computers in my house can view and can edit the files contained inside. This is so we can share files between each other without burning files to a disk.

We can view the shares perfectly but when you try to view the contents of the folder it says "You do not have permission to view this Network Source", i need a share that all guests/computers in the house can have access to and can edit.

I cant figure out how to do this as i have never played around with SAMBA shares before.

If you need any information about my linux box just state so.

Thank you
 
Old 12-31-2005, 01:27 PM   #2
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
I'd highly recommend against filesharing on a system directly connected to the internet. Having said that, make sure that the directory being shared has full rwx permissions. For example:

[root@mbox ~]# ls -ld /music
drwxrwxrwx 12 root root 480 Dec 30 19:24 /music

[root@mbox ~]# cat /etc/samba/smb.conf
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
.
.
.

[music]
browseable = yes
comment = Music
path = /music
read only = no
public = yes
guest ok = yes

(I chopped my smb.conf file down to just the info on the share. My actual smb.conf is 581 lines.)
 
Old 01-01-2006, 12:39 PM   #3
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Another approach is to make users members of a group then change group permissions on the share..
eg
[ENTRY]
create mask = 0660
path = /<directory>
force group = users
valid users = +users
case sensitive = No

then chown -R :users <directory>
& chmod -R 660 <directory>

Add browsers to the users group and to samba members.
First login will require a password but after that it should be automatic.

Make sure smbd is only listening on your local interface..
add
interfaces = eth0 lo
bind interfaces only = Yes

nmbd will listen on everything so filter it well.

Last edited by peter_robb; 01-01-2006 at 12:41 PM.
 
Old 01-01-2006, 01:18 PM   #4
crazykiller
Member
 
Registered: Sep 2005
Posts: 58

Original Poster
Rep: Reputation: 15
Is there any chance i can make 1 computer in specific see a specific share...

Like my computer is called SIMON is there any chance i can only make my computer view a share or at least password protect the share...
 
Old 01-01-2006, 03:34 PM   #5
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Seeing is a global function.. all or nothing..

Permissions are set by adding the user to samba with smbpasswd..
 
Old 01-01-2006, 03:35 PM   #6
crazykiller
Member
 
Registered: Sep 2005
Posts: 58

Original Poster
Rep: Reputation: 15
Ok, Any chance you can help me out with that... I deleted my only samba user by accident and i dont see where in Webmin or anywhere that allows me to create a user...
 
  


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
Unable to write to Samba Shares. usaf_sp Linux - Software 1 11-02-2005 01:45 PM
Windows ME cannot write to SAMBA shares apostate Linux - Software 2 07-30-2005 10:56 PM
Can not write to Samba Linux Shares from Windows boyd98 Linux - Software 2 05-12-2005 05:51 PM
Cannot create, modify, or write to Samba shares mpriddy Linux - Software 4 02-18-2004 10:40 AM
Can only write to samba shares as root. Neuronet Linux - Software 17 06-27-2003 06:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:23 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