Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have an external hard drive formated in NTFS which I would like to be able to access by the network. I want to make a network share out of it.

I also have a Debian machine running in my house and I then got an idea.

I want to plug in my external hard drive (usb) into my Debian machine, and make a windows share with it, maybe with Samba, so I will be able to access it from my Windows 7 laptop and see it as a network share.

Additionally, how can I restrict specific folders of that network share, and allow only specific folders to specific users? For instance, I would like to give my girlfriend access to a folder of her name so she can put her files and so she wont be able to see the stuff in my folder...

share|improve this question
add comment

migrated from serverfault.com Nov 16 '11 at 3:35

This question came from our site for professional system and network administrators.

2 Answers

Samba is exactly the tool to use. With Samba you expose directories as NTFS shares, and they are accessed just as you would a native Windows share.

If the share in Samba is not configured as accessible by guest ok then the user must provide credentials to access the share. In a basic setup, these credentials map to linux user accounts, and so you can use standard linux permissions to control access to different directories.

There are many tutorials available, this one should help you get started.

share|improve this answer
add comment

To set it up within 15 minutes, use any graphical samba administration tool. e.g. system-config-samba, SWAT, Smb4K.

This is a very useful link for you.

share|improve this answer
    
I dont have the graphical interface :( –  Jonathan Rioux Nov 17 '11 at 14:15
add comment

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.