Quantcast
Channel: Active questions tagged mount+fstab - Ask Ubuntu
Viewing all articles
Browse latest Browse all 723

Unexpected behaviour in Window for logging into SMB sharing mounted NTFS drives

$
0
0

I have an NTFS drive that is mounted with ntfs-3g in Ubuntu to be used for SMB file sharing.

A linux user called john is created and currently on his own group - john.

I have also created another linux group called Home.

In smb.conf I explicitly only allow @Home group to have read and write privileges.

But in Windows when using "Add a network location", it does not ask for any credentials when logging into the network location, you can read write modify the file freely.

However when using "Map network drive", essentially in Windows you map this network drive to a drive letter on Windows it asks for login credentials, and as expected john is not allowed to login.

I tried moving john to Home group and using "Map network drive" I can read and write the files in the share. I also tried removing write for @Home group, using "Map network drive" I cannot delete any files in the share.

So "Map network drive" is the expected behaviour but if "Add a network location" allow access freely, then there is no security at all?

Is this a bug in Window side or have set the config wrongly? Thanks for the help.

Here is the line for fstab

UUID=ABCDE123456789 /sharing/ auto uid=1000,gid=1000,rw,nls=utf8,nofail,x-systemd.device-timeout=5 0 2

I have created a share in smb.conf with the following config

[home]browseable = yespath = /sharing/home/writable = yescreate mask = 0774force create mode = 0774directory mask = 0775force directory mode = 0775read list = @Homewrite list = @Home

Viewing all articles
Browse latest Browse all 723

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>