Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Sample Configuration Files
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Sample Configuration Files Copies of commonly used configuration files in SUSE Linux
(Moderated - Please do not post questions here)

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-Apr-2004, 01:22
69_rs_ss
Guest
 
Posts: n/a
Default

Quote:
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SuSE
# Date: 2003-09-23
[global]
* workgroup = HOME
* os level = 2
* time server = Yes
* unix extensions = Yes
* encrypt passwords = yes
* map to guest = Bad User
* printing = CUPS
* printcap name = CUPS
* socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
* wins support = No
* veto files = /*.eml/*.nws/riched20.dll/*.{*}/
* security = user
* server string = Samba Server
* add user script =
* domain master = false
* domain logons = no
* local master = no
* preferred master = auto
;;* ldap server = 127.0.0.1
[homes]
* comment = Home Directories
* valid users = %S
* browseable = no
* read only = No
* create mask = 0640
* directory mask = 0750
* guest ok = no
* printable = no
[printers]
* comment = All Printers
* path = /var/tmp
* printable = yes
* create mask = 0600
* browseable = no
* guest ok = no
[print$]
* comment = Printer Drivers
* path = /var/lib/samba/drivers
* write list = @ntadmin root
* force group = ntadmin
* create mask = 0664
* directory mask = 0775
* browseable = yes
* guest ok = no
* printable = no
[storage]
* comment = Storage
* path = /storage/
* browseable = yes
* read only = No
* guest ok = yes
* printable = no
  #2 (permalink)  
Old 16-Jan-2007, 20:41
tanachi
Guest
 
Posts: n/a
Thumbs up

i've upgrade my samba from 3.0.20 => 3.0.23
something unique happens
on /etc/samba there are two samba.conf;
first samba.conf (the old one, commonly used)
n samba.conf.rpmnew (the configuration that appears after i upgraded the new one)

after i got this configuration, i always have to execute /etc/init.d/smb restart
how i can get rid of this problem :lol:

arigatou onegai shimasu
  #3 (permalink)  
Old 22-Mar-2008, 23:08
Stranger
Guest
 
Posts: n/a
Default

Quote:
[storage]
comment = Storage
path = /storage/
browseable = yes
read only = No
guest ok = yes
printable = no[/b]
So, I guess, this means that the "storage" folder is free to write in by anyone?
  #4 (permalink)  
Old 23-Mar-2008, 06:57
69_rs_ss
Guest
 
Posts: n/a
Default

It's been so long since I posted that, I don't remember. I no longer have any Windows shares as I use a NFS server. I'd say if you need help with Samba, Swerdna has some great guides.
http://www.swerdna.net.au/linux.html
  #5 (permalink)  
Old 23-Mar-2008, 07:24
swerdna
Guest
 
Posts: n/a
Default

Quote:
So, I guess, this means that the "storage" folder is free to write in by anyone?
[/b]
That share is visible (browseable), writeable (read only = no) and accessible by anyone from Samba's point of view (guest -- ok). But in Linux filesystem it is owned by root so in Linux filesystem it is only writeable by root.
Samba looks at both constraints (ok to write in Samba but not ok to write in Linux) and imposes the stricter limitation. So the result is that it's not writeable.

To make it writeable you change the Linux permissions from rwxr-xr-x (which prohibits anyone but root) to rwxrwxrwx (which allows the world). Then Samba says "ok for the world" and Linux says "ok for the world" and thus it does become "ok for the world".

Phew! :blink:
 

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2