LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   sharing permissions: Linux <> FreeBSD (https://www.linuxquestions.org/questions/linux-security-4/sharing-permissions-linux-freebsd-4175658776/)

BW-userx 08-07-2019 09:21 PM

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:~


pan64 08-08-2019 03:51 AM

895 or 985 ???
just create the same group[s] using the same name and gid.

BW-userx 08-08-2019 07:20 AM

Quote:

Originally Posted by pan64 (Post 6022836)
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.

zeebra 08-08-2019 11:59 AM

oops.


All times are GMT -5. The time now is 11:24 AM.