LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-08-2023, 03:59 PM   #1
gandsnut
LQ Newbie
 
Registered: Apr 2011
Location: Inland Pacific NW
Distribution: Right now, Ubuntu 20.04. Have used many.
Posts: 8

Rep: Reputation: 0
Real-world use of "owner-group-other" on one-user Ubuntu system - uncertain if this will work


Pardon the long explanation. I use Ubuntu 20.04. I am the only person that uses this system. It's my "daily-driver". So it and it's content is very important. There are 4 users of concern, bruce, chad, jack, fred. 5 years ago, Gnome/MATE was used by all. All users are currently set up as (owner, group identical) as in "bruce+bruce", "chad+chad" and so on.

I use a music composition/notation software called MuseScore. It is cross-platform (Linux, macOS, Windows). I need it to function optimally, all the time. Version 3.6.2 (latest) of MS was installed in fred, under '/home/fred'.

Dec '22 I modified fred's desktop to the latest KDE/Plasma release. By late Jan '23, I started noticing MS was getting sluggish when program menus were selected, opening pop-up windows. In the last few weeks, to open certain pop-up windows can take around 1min 40sec to paint and become available. Normally this would happen in a few seconds at most.

I've reached out to MS's community & tech support, but no suggestions for remedy have come. I believe that as updates happen to the KDE/Plasma desktop, elements of that architecture are producing this problem w/ sluggish program response in some cases.

I back up my MS music scores to a separate partition called '/oflow' for redundancy. There happens to be a partition called '/extra' that contains much data. /oflow & /extra are completely arranged under "bruce+bruce". The first graphic illustrates the current situation. And shows I am hoping to MOVE the MuseScore environment from fred to jack -- an XFCE4 desktop.

Along the way, I tested the Budgie desktop on user chad, but was not impressed by its look & feel. I have tested 3 release versions of MS (3.6.2, 3.7.x development, 4.0.1) on jack's XFCE4 desktop, and it works fine & snappy.

What I am hoping for is to create a 'unifying' access mechanism by assigning all users & their desktops to use new group 'everybody'. This way, if I'm logged-in to jack (/home/jack) I should be able to more easily access other user's data without repeated 'sudo' actions. The second graphic shows what I hope will work.

I've never found need to assign multiple login-id's to the same group. Now I think it will mean a way to make this scenario work.

Comment? Suggestion? Appreciated.
Attached Thumbnails
Click image for larger version

Name:	system_before.png
Views:	11
Size:	107.2 KB
ID:	40577   Click image for larger version

Name:	system_after.png
Views:	11
Size:	130.2 KB
ID:	40578  
 
Old 03-08-2023, 09:37 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,375

Rep: Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755
I wouldn't change everybody's PRIMARY group to a shared one.

Just create a 2ndary group for muse called eg muse and add that to everyone who needs it https://www.howtogeek.com/50787/add-...roup-on-linux/.
Ensure all relevant muse files/dirs have that group.

In fact normally for this sort of situation, you'd create user+group muse:muse and install muse as that user, then use the above link to add 'muse' as the 2ndary group to the relevant users.
 
Old 03-08-2023, 09:39 PM   #3
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 782
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
Yes, that will work. That is what groups are for. In additon to user:group ownerships, you will also want to check the permissions, and set them how you like: do you want to just be able to read the other users data, or to both read and write over? Do the other users data contain executeable files, and do you want to be able to execute them. All of these variances are achieved with the change mode command (chmod). You can set the group with the change ownerhsip command (chown). Of course you first have to have created the group, which you can do with the command to add a group (groupadd).
 
Old 03-08-2023, 09:43 PM   #4
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 782
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
But as Chris points out... that's a lot of trust amongst users, so you can just use the shared group on their music score data folders instead of their entire home folders.

You could also create a dedicated music score directory that's not in anyone's home directory to share amongst the group, and all the users can put their data in it.
 
Old 03-08-2023, 11:45 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,375

Rep: Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755
Yes, I didn't make the latter explicit; create a shared dir for music files that need to be shared.
Installing a service under its own user+group often does that anyway...

Never get into the habit of sharing users' home dirs / files directly.

Last edited by chrism01; 03-08-2023 at 11:46 PM. Reason: s/clear/explicit/
 
Old 03-08-2023, 11:51 PM   #6
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,386
Blog Entries: 3

Rep: Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776
Quote:
Originally Posted by chrism01 View Post
Yes, I didn't make the latter explicit; create a shared dir for music files that need to be shared.
Installing a service under its own user+group often does that anyway...
It's sufficient if they are all members of the shared group and that the group has read-write access to the directory. If they are to share write access to individual files, then you'll need to work with the SetGID bit and maybe umask, at least with EXT4.
 
Old 03-09-2023, 04:32 PM   #7
gandsnut
LQ Newbie
 
Registered: Apr 2011
Location: Inland Pacific NW
Distribution: Right now, Ubuntu 20.04. Have used many.
Posts: 8

Original Poster
Rep: Reputation: 0
I appreciate the comments that have come from my OP. I'll have to investigate the points raised, including the "umask & SETgid" things. Also, I am now studying the ACL (access control list) functions in Linux.

The various male names all are myself, just there to segregate desktop environments...
 
  


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
change of owner and group owner of a file belongs to diff user ? somorg Linux - Newbie 3 06-14-2015 09:11 AM
change of owner and group owner of a file belongs to diff user ? somorg Linux - Security 2 06-13-2015 02:33 AM
change of owner and group owner of a file belongs to diff user ? somorg Linux - General 2 06-12-2015 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:00 PM.

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