Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
To give users rw to another partition, an example below which works for me on an ext4 filesystem. Is this an ntfs filesystem and you forgot to mention that?? Makes a difference. So what happened when you ran the mkdir command, you didn't post the output.
That page (thanks for the link) suggests that for FAT partitions which are to be accessible by everyone, use the string user,auto,fmask=0111,dmask=0000 in fstab, so I changed mine to say
Which Ubuntu are you using? The more recent version have flash and external devices under /media/username
Post the permissions: ls -ld /media/USBSSD
What kind of data is on it?
I'm not running Ubuntu, I'm using the most up-to-date version of raspbian.
I'm trying to connect a new empty disk to a raspberry pi to act as a cheap nas.
Code:
$ ls -ld /media/USBSSD/
drwxr-xr-x 3 root root 16384 Jan 1 1970 /media/USBSSD/
Usually, that is done by giving the separate users a separate directory on the disk. That way they control who can read what within their directory.
You could also make the base directory sticky... (as in chmod ugo+rwxt the/media/USBSSD) which is the same as the access mode of /tmp. This allows any user to create a directory there, and then put stuff on it.
Since you are wanting to use the drive for a NAS it would make more sense to reformat (via mkfs) it with ext3 or other linux filesystem. A FAT32 (vfat) filesystem is not compatible with linux permissions.
My understanding has always been that Linux permissions aren't comatible with windows filesystem types. You indicate you can write to it as sudo and note the owner:group both root:root. Might also try changing one of those.
You likely have to be root to change permissions on /media/USBSSD/
Now if it is automatically mounted at boot then the permissions will likely go away (it depends on the filesystem used for /media, which is usually tmpfs for automatic mounts - that way it is also cleaned up on reboots as /media has to be recreated on each boot).
My understanding has always been that Linux permissions aren't comatible with windows filesystem types. You indicate you can write to it as sudo and note the owner:group both root:root. Might also try changing one of those.
That translation is what Samba is used for (as well as protocol compatibility).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.