How to Share Folders in Ubuntu on NTFS Partitions

With the help of SAMBA, it is very easy to share folder either from the command line or the GUI by right clicking on the folder and going to Sharing Options.

If this is the first time, than you would be asked to install SAMBA.

However there is a problem, NTFS partitions are not native for Ubuntu. To gain rights, change your /etc/fstab file to:

/dev/sda4 /media/Data ntfs defaults,umask=0022,uid=YourUID,gid=YourGID 0 0

You can know your UID and GID by running the following command:

id [yourusername]

Now mount all the changes you made to the /etc/fstab file by running the following command:

sudo mount -a

Finally open the SAMBA configuration file:

sudo gedit /etc/samba/smb.conf

Make the following changes:

[MyShare]
comment = My Share
path = /media/Data/FolderToBeShared
browsable = yes
guest ok = yes
read only = yes
create mask = 0755

Save and restart the service or reboot your machine.

Advertisements

2 thoughts on “How to Share Folders in Ubuntu on NTFS Partitions

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