[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Newbie Samba help



You are asked to setup a non-root user as part of the NetInst. This is
the User that I setup.


Yes, as Dave said, you have to use smbpaswd as root to add new users
which can access samba. Then you have to setup your
/etc/samba/smb.conf file to define shares, which are portions of your
filesystems viewable through samba. Do 'man smb.conf' to find out all
the details. As a minimum you should setup:

netbios name = <name>
- this is the name given to your samba server. users will be able to
access it by //name/share

To setup a share, do:

[test_share}
 path = /home/Jan/shared_dir
 writable = yes
 public = yes

To connect to it use //netbios_name/test_share .

You can also setup default per-user shares, which will show linux home
directory of a samba user if it exists, such as /home/Jan. To access
it do //netbios_name/Jan.
To setup home directories do (this should be inside your smb.conf
already, but might be commented out by default):

[homes]
  comment = Home Directories
  browseable = no
  writable = no
  create mask = 0700
  directory mask = 0700

To make your samba server reread your configuration file, do:
/etc/init.d/samba reload

Hope this helps.



Reply to: