LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux
User Name
Password
antiX / MX Linux This forum is for the discussion of antiX and MX Linux.

Notices


Reply
  Search this Thread
Old 04-05-2023, 01:17 PM   #1
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 299

Rep: Reputation: Disabled
Global Read / Write on External USB Drive ... How ????


Back again, hello everyone.

In our family there are four individuals who utilize the same external backup drive for all data backups. Today we replaced this drive with a new external 8 TB USB drive. It's been formatted in ext4 and we're ready to begin using it. Sadly we got stuck because the drive is in read mode only. Oddly enough we didn't have this problem with the previous USB drive which this one replaced.

At first I was going to chown the drive with a user name but then it occurred to me that that wouldn't do any good for the other three members of the family. So my question is, what do I need to do in order to have that entire new drive accessible to everyone in the family? It is strictly a storage / backup drive which serves no other purpose. No operating system and no running applications. All of the users are Linux users, one of us also uses Android 10 for access.
Each of us needs to be able to use that drive whenever we want.
Thank you.
 
Old 04-05-2023, 03:00 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,141
Blog Entries: 6

Rep: Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828
How did you mount it? Show the mount command.
Did you mount it as user or root? If you mounted as root then only root can write to it.
You could give users limited access in the /etc/sudoers file.
See:
Code:
man sudoers
Or read the docs for your distro and find out how it allows users to mount a device.
 
Old 04-05-2023, 03:49 PM   #3
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 299

Original Poster
Rep: Reputation: Disabled
The system with the external drive has been set up as root by default. Normally I utilize GUI functions within Thunar to open a folder as root, then assign read/write privileges to all users across the board because that's the easiest way for me to deal with it. This time however, even while using Thunar as root, I wasn't able / permitted to change the drive from read only to read / write. That's why I'm stumped now.
 
Old 04-05-2023, 04:32 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by LinWinux View Post
At first I was going to chown the drive with a user name but then it occurred to me that that wouldn't do any good for the other three members of the family. what do I need to do in order to have that entire new drive accessible to everyone in the family? Each of us needs to be able to use that drive whenever we want.
You could create a new group. Make all of the family members of that group. In the file permissions on the drive give the group members read, write, and execute permissions on every directory and file on the drive.
 
Old 04-06-2023, 12:12 AM   #5
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 299

Original Poster
Rep: Reputation: Disabled
Thanks, but I would need instructions on how to do that. I've been using Thunar with root privileges for years in order to assign read/write options for folders and files during the past several years. This is the first time that I wasn't able to do that. So I'm kinda lost without the instructions to go along with the ideas.
 
Old 04-06-2023, 04:44 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,534

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Have you tried a filesystem check or the other suggestions at the link below?

https://www.baeldung.com/linux/chang...emporary-crash

Another option you can use after this problem is resolved is to simply create a 2TB partition for each user with rw permissions for them.

There are lots of sites explaining how to add groups and users to groups such as the ones below.

https://linuxize.com/post/how-to-cre...oups-in-linux/

https://www.ibm.com/docs/en/ibm-mq/9...g-groups-linux
 
Old 04-06-2023, 05:04 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,359

Rep: Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335
In addition to what's been said
  1. Put the drive in /etc/fstab, even if you choose to give it the 'noauto' option.
  2. Give it the 'users' option in fstab.
  3. I would make a directory each for the 4 users, and run 'chown -R luser:users' on them. If, for example, the drive is mounted on /mnt/hd, only root can write to /mnt/hd but each user can write to /mnt/hd/my_subdir. That way users can't overwrite each other's stuff, but can overwrite their own.

That arrangement works as long as the users don't transfer root owned files.
 
Old 04-06-2023, 05:31 AM   #8
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 299

Original Poster
Rep: Reputation: Disabled
Thank you everyone. I know you mean well but I started using Linux (Ubuntu) back in 2009 when it really wasn't so important anymore to use the Terminal. Since then most Linux distros such as Ubuntu, Mint, Manjaro, and yes even Debian have evolved to a degree where the terminal is pretty much obsolete for general computer users who jumped over to Linux from Windows ....
Case in point, I have personally helped about 50 people move over to Linux from Windows and I can assure you that none of them are using the terminal for anything and with but one exception so far, everyone has been more than happy after making the switch and getting used to some minor adjustments. Many if not most "long-term oldtimers" with Linux get exasperated at Linux users who pretty much stay away from the terminal, but hey, that's called evolution ... just as cars no longer require a hand crank to start or clothes that need to be washed on a washboard.

So I appreciate all of the advice, but when there's no point 'n' click option for me which I can also later teach to others, then I'll have to revert to that which is easier to understand and/or make use of.

I went ahead and re-formatted the entire hard drive as NTFS and the problem has been solved since our four Linux users all have the NTFS driver installed. Now everyone has access and can do whatever they want. Granted EXT4 is a better file system and there's little to no defragmentation, but as stated earlier, this is strictly a disk for depositing files. I'm sure the drive will be fine for at least 6 or more years with NTFS and by then we'll more than likely have replaced it anyway.
Thanks again everyone.
 
Old 04-06-2023, 06:00 AM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,610
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
Quote:
Originally Posted by LinWinux View Post
...the terminal is pretty much obsolete for general computer users who jumped over to Linux from Windows ....
Case in point, I have personally helped about 50 people move over to Linux from Windows and I can assure you that none of them are using the terminal for anything and with but one exception so far, everyone has been more than happy after making the switch and getting used to some minor adjustments. Many if not most "long-term oldtimers" with Linux get exasperated at Linux users who pretty much stay away from the terminal, but hey, that's called evolution ... just as cars no longer require a hand crank to start or clothes that need to be washed on a washboard...

I went ahead and re-formatted the entire hard drive as NTFS and the problem has been solved since our four Linux users all have the NTFS driver installed. Now everyone has access and can do whatever they want.
You see what we're up against? Even Linux users nowadays are not interested in using it as anything more than a safer and more efficient version of Windows. You give them this extraordinary treasure chest and they never even bother to lift the lid and look inside. Using the command line in Linux is not like starting a car with a hand crank; it's like having a car whose engine you can take to pieces whenever it goes wrong and fix it yourself, without ever needing to take it to the garage for repairs.

The OP seems like an intelligent and thoughtful young person but also a bearer of very bleak news.

Last edited by hazel; 04-06-2023 at 06:19 AM.
 
Old 04-06-2023, 06:19 AM   #10
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 299

Original Poster
Rep: Reputation: Disabled
You're right, Hazel.
Linux is the most amazing and wonderful OS that I've ever used and I've been using computers on a professional level since 1990. I also design, run and maintain websites of which there are about 8 of them that I'm in charge of. On top of that I'm a professional graphic artist who works on pretty much any type of image design, from slideshow presentations to business cards, gigantic commercial advertising posters, car decals, and more. LibreOffice (ever since I switched from MS Office) is used for Databases, Legal Briefs (I'm not kidding), generic business letters, tutorials, and just about anything else that needs to be written for printing purposes. I'm also a hobby photographer and I sell merchandise on two different classifieds portals which requires tons of image work with GIMP after having switched years ago from Adobe Photoshop. There are also pets which require our care and I maintain all of the computers for everyone around here.

So as wonderful as Linux is, when having learned everything with the terminal from day one it comes as second or even first nature, but when having to switch to the terminal after more than 20 years of Windoze usage, while also being as busy as I am where I can't remember one day from the next sometimes, that's when the ease of point 'n' click instant gratification can't be beat. I simply don't have the time to keep on learning new written commands and keeping track of them when there's already a simple point 'n' click method of getting something done. The terminal is not always better and proof of that is with image work where you can blow the socks off someone who tries to do everything in a terminal that I do with images while using GIMP. Times have changed indeed and I'm actually one of those people who believe that it's better for users who are not proficient with terminal commands to stay away from the terminal ... for the sake of safety.

So that having been said, I believe that Linux is mind boggling fantastic ... but in this day and age the terminal should not be a mandatory tool to master (anymore). If you have the time to learn, go for it ... but if you don't, then don't drive yourself nuts learning something new the hard way, when that can just es easily be accomplished with something that you're already familiar with, like a computer mouse.
Peace.

Last edited by LinWinux; 04-06-2023 at 06:20 AM.
 
1 members found this post helpful.
Old 04-06-2023, 06:24 AM   #11
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 299

Original Poster
Rep: Reputation: Disabled
PS: Forgot to mention that I also do professional translations with English & German languages (no deepl or translation apps) and that I have my own version of MX Linux which also requires tons of my time for graphical, user apps, and translation changes.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to enable a Hard Disk to read/write to a USB device but disable the USB device to read/write to the hard disk without user permission? ce309 Linux - General 33 05-22-2019 04:30 PM
[SOLVED] usb drive: cannot remount block device /dev/sdb1 read-write, is write-protected schneidz Linux - Hardware 5 01-06-2015 03:15 PM
Cannot write more than 2GB to file in non-global zone - in global zone I can newbie_123 Solaris / OpenSolaris 2 10-02-2014 07:24 PM
[SOLVED] External USB hard drives no longer mounting read/write -- now read only revbish Puppy 2 01-28-2013 05:44 PM
Ubuntu 11.10 HELP NO longer have Read Write Permissions on external NTFS USB Drive rstoesser Ubuntu 1 10-25-2011 03:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux

All times are GMT -5. The time now is 05:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration