LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-26-2004, 02:27 PM   #1
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
how do i modify my smb.conf to allow anyone access ...


to a specific folder. i am about to help a friend up together a TB file server. we will be using debian sarge with the speakup kernal as that is what comes on my CD. i will be setting up samba and smbfs so i can go both ways.

we are setting this up for LAN parties, etc. basically he has a handful of friends that are at his place as he has the most storage space, and most space to setup LAN parites, etc...

i know i could set up my standard samba server with my default smb.conf i use that shares out the home directory, but i want to not have to worry about all the different user/pw combos and differnt workgroups of his friends as they bring their systems over for the LAN parties, or to upload/download programs to his TB server.

(the local bestbuy in his area had WD 7200rpm IDE drives on sale for $20 after rebate... ea =139GB of raw storage. for that price he can afford a few controllers and poof nice little TB server)

also will *nix and samba allow that much storage space? do i need to break each drive up, can i software raid them together for striping?

Code:
# 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
#
# Any line which starts with a ; (semi-colon) or a # (hash) 
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors. 
#
#======================= Global Settings =====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name
	workgroup = ssma.local

# server string is the equivalent of the NT Description field
	server string = Samba Server

# This option is important for security.  It allows you to restrict
# connections to machiens which are on your loacl network.
	hosts allow = 192.168.2. 

# If you want to autmatically load your printer list rather
# than setting them up individually then you'll need this
	printcap name = /etc/printcap
	load printers = yes

# It should not be necessary to spell out the print system type unless
# yours is non-standard.  Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx, cups
	printing = cups

# This tells Samba to use a separate log file for each machine
# that connects
	log file = /var/log/samba/%m.log

# Put a capping on the size of the log files (in Kb).
	max log size = 50

# Security mode.  Most people will want user level security.  See
# security_level.txt for details.
	security = user

# You may wish to use password encryption.  Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
	encrypt passwords = yes
	smb passwd file = /etc/samba/smbpasswd

# The following is neede to keep smbclient from spouting spurious errors
# when Samba is built with support for SSL.
	ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt

# The following are needed to allow password changing from Windows to
# update the Linux system password also.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
#	the encrypted SMB paswords.  They allow the Unix password
#	to be kept in sync with the SMB password.
		unix password sync = Yes
		passwd program = /usr/bin/passwd %u
		passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

# You can use PAM's password change control flags for Samba.  If
# enabled, then PAM will be used for password changes when requested
# by a SMB client instead of the program listed in passwd program.
# It should be possible to enable this without changing your passwd
# chat parameter for most setups.

	pam password change = yes

	obey pam restrictions = yes

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

	dns proxy = no

#============================== Share Definitions ===============================
[homes]
	comment = Home Directories
 browseable = no
 writable = yes
 valid users = %S
 create mode = 0644
 directory mode = 0755

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

# uncomment if useing /tmp/*
;[tmp]
; comment = Temporary file space
;	path = /tmp/samba
#  in the path place what ever subdirectory you want
;	read only = no
;	public = yes
how do i set it up to share out differnt locations, and how do i set it up to not care who access that/those directories?

thanks.
 
Old 11-26-2004, 10:34 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
hi,
there are a number of ways samba can act (different security modes)
that also effect the way you set up the windows machines i think ?
i havn't tried all this so just consider it a getting started thing
this one i think you have only “Logon and restore network connections.”
as an option under “Client for Microsoft Networks.”
the samba server is the wins server
and workgroup has to match

you can get samba to ignore all usernames given and instaead treat everyone as the "guest" account
and guess doesn't need a passwd.

so set up a guest account on you machine named anything
example "anon"
useradd anon

then in samba config globals (i give just the important parts not the whole thing)

security = share
guest account = anon

then in the share definition (again just a made up example)
[lanpartyshare]

path = /data/lanpartyfiles
read only = no
force user = anon (you can also do a force group = if you need or want to)
guest ok = yes
nt acl support = no

then i think users can type any user name at all and get in
other than that just get the permissions on the files so "anon" can do stuff

Last edited by foo_bar_foo; 11-26-2004 at 11:20 PM.
 
Old 11-26-2004, 11:19 PM   #3
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
great that is what i was looking for.

figured that i had to have the workgroup match. that is no biggy. just means windows guys need to reboot.
 
Old 11-26-2004, 11:23 PM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
hi just make an update to above i think after your reply

left out
guest account = anon

it might work without it but i think it's really the whole thing
i had one of those late ah ha experiences
 
Old 11-27-2004, 04:55 PM   #5
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
ok ill play with that. when you have /data/lanparty that can be what ever path to the share directory i want right?
 
  


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
smb.conf entry for rwx access by multiple users thegnu Linux - Networking 1 05-13-2005 09:24 PM
Samba Share SMB.CONF Access Denied mikeaustn Linux - Software 1 09-28-2004 03:14 PM
How to modify grub.conf george_mercury Linux - Newbie 1 06-14-2004 09:16 AM
guest access to a share in smb.conf ?? ludeKing Linux - Networking 1 10-27-2003 01:36 PM
modify file access & modify timestamps i2itstud Linux - General 1 05-20-2003 03:34 AM

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

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