Home
About this site:
Disclaimer
Change your settings,
Setup
links to other sites on this server:
Birds
Insects
Edimax mod
Webserver on Edimax
Mailserver on Edimax
links to other sites:
Tranquil PC
Ubuntu Linix kernels
Put Linux on a memory stick
grub2 manuals in progress

21. Samba shares


This part may be used as an example to set up a shared disk. However, it must be customized further to your needs.

This parts primary function is to remember me how it was done, now how ist should be.

This setup may work proper in the following conditions:

If your decide to use the SMB protocol in a similar way, please first have a look on security and performance issues.

Accessing directories from Windows computers as remote disks

Create a new user for Samba access

or choose an existing one. Give him/her an entry in /etc/passwd, and group (shadow). Or add him to an existing group, e.g. "users".

Give him Samba access by the commands:
cd /etc/samba.
smbpasswd -a name.

Install SWAT (Samba Web Access T..)

If not done already in scripe 9.install_more_packages, install SWAT with the command in a root shell: apt-get install swat

Create a share

Use your browser to go to "http://server:901"; first to set some global variables, then to add some directories to be shared. Remember the names of the share, and the users that have access.

Set globals

namevalue
workgroupprive
realmprive
netbios nameBBS
server string(%h)
securityshare
map to guestnever
password backendsmbpasswd
guest accountlocal
pam password changeno
username map/etc/samba/smbusers
unix password syncno
valid userslocal
read listlocal
write listlocal
printer adminlocal
hosts.alow10.x.y.z/255.255.255.0
syslog1
socket optionsSO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
printcap namecups
case sensitiveno
perserve caseno
short preserve caseno
hide dot filesno

Create share

namevalue
commentBBS /var directory
path/var
read listlocal
valid userslocal
write listlocal
force groupusers
read onlyno
create mask0775
directory mask775
guest okyes

Use a share

In a Windows explorer window, choose Extra or tools, create network share, and fill in the //host/, and the user.


For remarks about this page, click here email: philip@van.geens.nl