About me
Services
Projects
Design Patterns
Archive
Contact
home > Archive > Linux User Setup

Linux User Setup

The following simple howto walks you through the steps required to setup a group, and users on your linux server. Once you have the group and users setup, it steps you through configuring samba and the samba server. The deamon for running samba is smbd (/etc/init.d/smbd) and will need to be restarted once the configuration has been changed. Have fun!

Users and Groups
groupadd web
useradd -g users joe
useradd -g users fred
useradd -g web tomcat
passwd joe
passwd fred
passwd tomcat

Public Folders
mkdir /web
chown tomcat.web /web
chmod 775 /web

Setting Up Samba Users
rpm -q samba
smbpasswd -a joe
smbpasswd -a fred

Setting up Samba
workgroup = aWorkgroup
server string = Caterham Samba
hosts allow = 192.168.0. 127.

[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes

[web]
comment = Apache Web Content
path = /web
read only = yes
public = yes
write list = @web



[/etc/init.d]$ ./smbd restart
Copyright 2008 Graham Lange All rights reserved
SUBSCRIBE