Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I just have Ubuntu server installed and i want a SMB server. So i got Samba all set up but now i wonder how to create a 'share', in Windows you would just go to Properties/Sharing/Advanced sharing, but i don't really know how to make one in Linux with Samba. I made a user with smbpasswd -a mylinuxusername, but that isnt the share name. Using net view \\myservername shows no shares at all, but i'm sure Samba is running.

Please explain the 'shares' in Samba.

share|improve this question
    
Edit the file /etc/samba/smb.conf. See samba.org/samba/docs/man/manpages-3/smb.conf.5.html and samba.org/samba/docs/man/Samba-HOWTO-Collection –  Zoredache Jan 3 '13 at 20:26
    
@Zoredache Ok, but if you say something like this please post it as an answer. –  Sydcul Jan 3 '13 at 20:34

1 Answer 1

You have to go to the configuration file with e.g. this command

nano /etc/samba/smb.conf

and then scroll down using the arrows of your keyboard.

You can create a simple share using the following lines:

[exampleShare]
     path = /srv/shares/exampleShare
     available = yes
     browseable = yes
     writeable = yes
     guest ok = no
share|improve this answer
    
Thanks! That solved it.You can accept this answer in 6 minutes :( –  Sydcul Jan 3 '13 at 20:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.