Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms

Home

The smb.file

Global Parameters

Share Parameters

Add users

Restarting Samba

Windows View

Samba as a PDC

Add a Win pc to the domain

Samba FAQ

 

Email me with your comments


 

 

 

 

 

Share Parameters

[homes] When you create a user on your Linux pc (more on this later) it will automatically create a home folder for you in /home/yourusername. Think of this as your "My Documents" for Linux.

read only = no: By default Samba will always make any directory read only for security reasons, so we need to let Samba know that we want to be able to write to this directory.
browseable = no: defines when you map a network drive to Samba, it will map directly to your user directory ie: \\home\mw (this is my username on Linux and Samba) This share /homes/mw is browseable only by you. Remember this is much the same as the "My Documents" folder in Wndows

[Music] This will create a share for mp3 storage. Again lets go over the share parameters for this.

path = /data/mp3: This tells us the directory is found on the Samba server as /data/mp3, later when we map the network drive on the Windows pc, it will be seen as "music" in Network Neighborhood
browseable = yes: This share will show in in Network Neighborhood as "Music"

***To make this directory open a terminal window and type in md /data/mp3. Or this can be done from a file manager

public = yes: Specifies anyone can access and view the contents of /data/mp3
write list = mw, Jackie: Although anyone can view and excute (meaning see and play any mp3 in this directory). For security and practical reasons I have set this share so that only mw (thats me)and jackie can delete or add files. You can add as many names as you wish to this line ie:, mw, john, tiffany etc. To exclude any person from being able to access this share altogether, add the line: invalid users = vicky, steve. These names are the logon names from Windows, and are not case sensitive. They also must have a logon name and Samba password on the Linux pc.

In order for Samba to accomplish all this we need to set certain Linux file permissions such as these. This can be done by opening your file manager (in this case Konqueror) and right clicking on the /data/mp3 share and choosing properties


.

[everyone] This will create a share that is viewable, and writeable by anyone. This is not at all a secure share. Anyone can do whatever they wish, including deleting files that are not their own. I strongly do not recommend this type of sharing. I have given this example for illustrative reasons only.
path = /data/everyone: This tells us the directory is found on the Samba server as /data/everyone, and that when we will map the network drive it will be seen as "everyone" in Network Neighborhood

***To make this directory open a terminal window and type in md /data/everyone. Or this can be done from a file manager

read only = no: By default Samba will always make any directory read only for security reasons, so we need to let Samba know that we want to be able to write to this directory.
browesable = yes: This share will show in in Network Neighborhood as "everyone"

In order for Samba to be able to allow anyone read, write access to this share, we need to set certain Linux file permissions such as these. This can be done by opening your file manager (in this case Konqueror) and right clicking on the /data/everyone share and choosing properties

 

Top of page
Home

Next: Adding users and restarting Samba