Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 51019  / 3 Years ago, sun, august 29, 2021, 12:28:58

It doesn't seem that many others have had this problem so I thought I'd ask here.



Have a server running Ubuntu with 1 internal and 1 external drive. Have a folder shared with samba on the internal drive that can be accessed, however, when sharing the entire external or just a folder on it I get the "You do not have permission to access" error on the Windows clients.



When sharing on Ubuntu I go to properties, share and then tick share, allow others to write as well as guest access. Clicking create share then says it will have to set the permissions and I let it. It's not accessible. When trying to set permissions manually in the Permissions tab it doesn't let me choose anything, when choosing Read and Write for "other" users it reverts back to nothing as soon as it's chosen.



I've tried creating a symlink from the mount point to within the home directory and sharing that, even getting chmod to change the permissions so they're viewable in ls -la, but it still isn't accessible. Is there something really simple I'm missing here like externals not being easily shared? Thinking I might have to crack it open and stuff it inside the server. Oh and the external is NTFS, if that would make a difference.


More From » permissions

 Answers
2

Try sudo chmod -R 755 <path of external drive> and see if that fixes the permissions error. (Warning, this will give everyone read-write-execute access to everything on the drive).



If that doesn't work...



Make sure the external has a real mountpoint like /external or /shared-stuff.



If it is mounted to the temporary location (which is default behavior), samba might be looking at an old temporary location, get a read error, which is passes on as a permissions error to the windows client.



If that doesn't work, it is probably because the drive is ntfs. NTFS permissions are stored in a way that don't make sense to linux, and probably not to samba either. It would be good to use a native linux format, but that requires moving the data off and reformatting the drive, and copying the data back.


[#39816] Sunday, August 29, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ionodest

Total Points: 252
Total Questions: 122
Total Answers: 100

Location: Liechtenstein
Member since Tue, Apr 27, 2021
3 Years ago
;