View Single Post
  #2  
Old 1st June 2007, 11:10
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,158
Thanks: 4
Thanked 57 Times in 53 Posts
Default

Here's my samba config

Code:
[global]
workgroup = ARBEITSGRUPPE
hosts deny = 10.0.0.1

[exchange]
comment = Exchange
path = /home/hyper/exchange
force user = hyper
force group = hyper
read only = No

[appz]
comment = Appz
path = /home/hyper/appz
Note: I don't want to accept conenctions from 10.0.0.1 which is my router and hence the access point from outside of my lan and I set user and group to my default user on my box so that new files have the correct ownership.

Once that is done, you need to add first a system user (if you don't want to use yours) which then can be added to samba:

Code:
sudo useradd SMB_USER
(sudo is the Ubuntu way of getting temporary root access...)

Then give a password to that user:
Code:
sudo passwd SMB_USER
Once done, we need to add it to samba:
Code:
sudo smbpasswd -a SMB_USER
I'm not sure if you can just enter a blank password... I've never tried it... in winxp I can save the password for network shares so that was never a matter of importance to me...

In the end restart the samba server:
Code:
sudo /etc/init.d/samba restart
Of course you could now limit the system user in one way or another... but I don't know if you need that.
Reply With Quote