LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-13-2006, 10:53 AM   #1
yogaboy
Member
 
Registered: Oct 2004
Location: Londinium
Distribution: CentOs 4, OSX Tiger
Posts: 93

Rep: Reputation: 15
Samba - all user share where?


Hello,

I want to ask a stupid question (instead of making a stupid mistake! )

so here it is:

I've just set up Samba on CentOS 4, and I want to set up a shared folder that everyone in the office can use for docs that are for all to see. Main thing is, I'm very new to Linux and looking at the ton of folders already on the drive I was wondering where is best to put that folder.


Any help much appreciated.
 
Old 12-13-2006, 11:09 AM   #2
asommer
Member
 
Registered: Mar 2003
Location: North Carolina
Distribution: Gentoo
Posts: 168

Rep: Reputation: 30
From my experience it sort of depends on the layout of your hard drive.
I usually setup a /var/samba/whatever_share_dir for my servers. Users /home/username is shared as well.

You could also do something like /home/share/_dir_names if you have more room on /home. The thing to remember is permissions chmod 777 or whatever you need it to be.
 
Old 12-13-2006, 11:17 AM   #3
yogaboy
Member
 
Registered: Oct 2004
Location: Londinium
Distribution: CentOs 4, OSX Tiger
Posts: 93

Original Poster
Rep: Reputation: 15
thanks a lot asommer! Much appreciated
 
Old 12-13-2006, 04:34 PM   #4
ITchick
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
Did this work?

What did you end up doing and how did it work out?
 
Old 12-15-2006, 10:25 AM   #5
yogaboy
Member
 
Registered: Oct 2004
Location: Londinium
Distribution: CentOs 4, OSX Tiger
Posts: 93

Original Poster
Rep: Reputation: 15
Sorry for the delay.

I setup the share as /var/samba/ but even though I could ping the server I couldn't smb to the share. So I fiddled about with all sorts of things in the smb.conf which I can't remember off hand (umm, setting the ipranges properly...?), and it still doesn't work. I've set it to allow everyone.

I'm back in front of it Monday and when I find out the fix I will post it up, for reference.
 
Old 12-15-2006, 07:33 PM   #6
hardwyrd
LQ Newbie
 
Registered: Jul 2006
Distribution: Ubuntu, Knoppix, SuSE
Posts: 9
Blog Entries: 1

Rep: Reputation: 0
Hi!

What I do whenever I make a public Samba share is to create a /opt/public folder, then chmod it to 777. After that, everything will be just a matter of setting it up.

Sample snippet:

admin@linux: # mkdir /opt/public
admin@linux: # chmod 777 /opt/public
admin@linux: # cd /etc/samba
admin@linux: # vi smb.conf

...somewhere in your smb.conf:

[Your Shared Folder]
inherit acls = Yes
path = /opt/public/
read only = no
writeable = true ;or 'write ok = true'
browseable = yes
guest ok = Yes

You can also add the windows users and their password into Linux then add them to Samba using the 'smbpasswd' command:

admin@linux: # useradd user
admin@linux: # smbpasswd -a user
New SMB password:
Retype new SMB password:

Don't forget to check your firewall too, it might be blocking the SMB port(s).

Hope this helps.
 
  


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
Samba share that everyone can use (no user or passwords required) xmrkite Linux - Software 2 10-17-2006 01:29 PM
User owns everything in samba share ZeroFill Linux - Software 1 11-26-2005 07:13 AM
samba security: user vs share jiml8 Linux - Security 4 03-01-2005 06:12 AM
samba user and share access? Moebius Linux - Software 3 08-30-2004 02:09 PM
XP user can't access samba share atp777 Linux - Software 0 03-30-2004 05:33 PM

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

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