Solution Concepts

Hax - Linux - Samba

 

"Making IT happen on the
Information Superhighway"

 

2600 | Antionline | Astalavista | Blacklisted 411 | Crypto-Gram | Defcon | Geeks Are Sexy | IT Conversations | Shoutwire | Slashdot | Tech Tales | The Daily WTF |

Forums | Linux | News |Telephone | Windows |

 

    

 

Add Samba Users

 
  • Create a user account first (not related to Samba)
    # useradd janet3
  • Then create Samba password as follows:
    # smbpasswd a- janet3
    {You are prompted for a password}
  • Restart Samba
    # /etc/rc.d/init.d/smb restart

 

Configuration

 
  • [global]
    workgroup = NameofWorkgroup
    netbios name = NetBiosName
    encrypt passwords = yes
  • [music]
    path = data/mp3
    browseable = yes
    read only = no
    valid users = username
    write list = username
  •  

 

Hello World Config  
  • We should point out that in terms of system security, thi is the worst setup possible. For the moment, however, we only wish to test Samba, so we'll leave security out of the picture.
  • To test the server software, though, we'll use the following file. It should be named smb.conf and placed in the /usr/local/samba/lib directory.

 

Installation

 
  •  

 

Location of .conf File

 
  • /etc/samba/smb.conf
  •  

 

Project Source

 
  •  

 

Restart Samba Server

 
  • # /etc/rc.d/init.d/smb restart

 

Swat: 901

 
  •  

 

Tutorials