LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-07-2019, 09:21 PM   #1
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
sharing permissions: Linux <> FreeBSD


I got a multiboot, slack, arcoLinux,FreeBSD, (Win10) all sharing a common Partition for data storage. I basically just got FreeBSD installed, and still am learning the ins and outs of this one.

the user group for this partition is
userx:users

I had to change the UID in FreeBSD to 1000, I figured that out easy enough.
I created a group 'users' in FreeBSD by adding it with some pm commands then editing the etc/group file and changing it to 895.

Because I could not find anything else to tell me different and that is what I found in how to change the UID.

Slackware and ArcoLinux is already setup for userx and users group UID 1000 GID 895.
FreeBSD shows user and group name using ls -la as userx users as it should,
Booting in to Arco and checking it, it is showing userx 895 on files. meaning the user group is not conforming to linux but the user name and UID did.

So the question is how to get it to have the group 'users' UID 895 to conform between all three Distros?

this is ArcoLinux
Code:
[userx@arcomeo data1]$ id
uid=1000(userx) gid=985(users) groups=985(users),94(floppy),96(scanner),98(power),986(video),991(lp),993(input),995(audio),998(wheel)
slackware
Code:
$ id
uid=1000(userx) gid=985(users) groups=985(users),7(lp),10(wheel),11(floppy),17(audio),18(video),19(cdrom),71(input),83(plugdev),84(power),86(netdev),93(scanner),1000(vboxusers)
let me boot into FreeBSD and get its id, and find this post and add it.

FreeBSD
Code:
$ id
uid=1000(userx) gid=1000 groups=1000,0(wheel),5(operator),44(video),895(users)

############

I think I might have fixed it, I set primary UID using chpass
Code:
root@FreeBSD64:/home/userx # id userx
uid=1000(userx) gid=895(users) groups=895(users),0(wheel),5(operator),44(video),895(users)
###### NOPE #######
Code:
drwxrwxr-x  11 userx  895       4096 Jul 29 21:13 scripts
drwxrwxr-x   5 userx  895       4096 Jul 30 06:17 variety
drwxrwxr-x   2 userx  895     286720 Aug  7 21:11 wallhaven-papers
drwxrwxr-x   2 userx  895      40960 Aug  7 12:26 wallpapers
userx@slack.it.netters:~

Last edited by BW-userx; 08-07-2019 at 09:36 PM.
 
Old 08-08-2019, 03:51 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
895 or 985 ???
just create the same group[s] using the same name and gid.
 
1 members found this post helpful.
Old 08-08-2019, 07:20 AM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by pan64 View Post
895 or 985 ???
just create the same group[s] using the same name and gid.
yeah I was thinking about that this morning before I got up, is that the same number? I should have asked, that too.

All the pillows are chewed up so the dog was chewing on my leg, and I couldn't considerate.

or

dyslexia kicking in. I get numbers mixed up sometimes.

Thanks for pointing that out.

Last edited by BW-userx; 08-08-2019 at 07:39 AM.
 
Old 08-08-2019, 11:59 AM   #4
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,834
Blog Entries: 17

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
oops.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Permissions Permissions Permissions! makem Linux - Newbie 13 07-30-2015 11:54 AM
Filesystem Read/Write Support in FreeBSD? / Share files Linux btw FreeBSD pseudonomous *BSD 3 01-29-2009 04:59 AM
As a FreeBSD user, what is the best things you like about FreeBSD? t3gah *BSD 6 06-10-2005 02:38 PM
FreeBSD 4.6 vs. FreeBSD 4.7 mikeshn *BSD 1 11-02-2002 01:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:06 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