HowTo: mount a USB hdd in Debian and share it for all users without authentication

All these I needed to do on my RaspberryPI so that I can share a mounted USB drive to the entire network and to be accessible fully without any authentication.
I know, not very smart, but try to configure a TV, 2 iPads, 1 iPhone, 1 Android and one Internet radio to access it.


My USB Hdd is /dev/sda1 and it is mounted on /media/usb



security = share
guest account = nobody

comment= Media
read only = no
path = /media
guest ok = yes
browseable = yes
public = yes
guest only = yes
guest account = nobody



/dev/sda1 /media/usb ntfs noatime,users,uid=0,gid=0,fmask=0111,dmask=0 0 2



This will allow all rights on the /media/usb to all users.

Don’t forget to restart the system or the services.


© Copyright Sorin Mustaca, All rights Reserved. Written For: Sorin Mustaca on Cybersecurity

Check for seeing the consulting services we offer.

Visit for latest security news in English
Besuchen Sie für IT Sicherheits News auf Deutsch

About the Author

Sorin Mustaca
Sorin Mustaca, (ISC)2 CSSLP, CompTIA Security+ and Project+, is working since over 20 years in the IT Security industry and worked between 2003-2014 for Avira as Product Manager for the known products used by over 100 million users world-wide. Today he is CEO and owner of Endpoint Cybersecurity GmbH focusing on Cybersecurity, secure software development and security for IoT and Automotive. He is also running his personal blog Sorin Mustaca on Cybersecurity and is the author of the free eBook Improve your security .
%d bloggers like this: