Install samba on debian and connect with windows 7

  1. Install samba with ‘apt-get install samba’
  2. Follow the install wizard and enter ‘workgroup’ and if you use a dhcp server
  3. Add a directory for samba shares. ‘mkdir /samba
  4. Add a usergroup for samba. ‘groupadd sambauser’
  5. Give directory to the group. ‘chgrp sambauser /samba’
  6. Change the rights. ‘chmod 770 /samba’
  7. Add a user. ‘useradd -g sambauser windowsclient’
  8. Give the user a password. ‘passwd windowsclient
  9. Add samba password, make it the same as the linux user password. ‘smbpasswd -a windowslcient’
  10. Enable user in samba. ‘smbpasswd -e windowsclient’
  11. Add the following to /etc/samba/smb.conf

      [MyShare]
      path = /samba
      writable = yes
      public = no
      valid users = windowsclient
      force create mode = 0770
      force directory mode = 0770
  12. Restart samba with /etc/init./samba restart’.

Now you should see your server under network on the windows system and can connect using the account windowsclient / password.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: