UFS (data) partition is auto mounting but becoming root owned after every reboot

Post your general questions or comments about GhostBSD here!
User avatar
security_lover
Posts: 69
Joined: Thu Apr 22, 2021 9:54 am

UFS (data) partition is auto mounting but becoming root owned after every reboot

Post by security_lover »

I have a separate spinning disk which I use to store data only. I used chown command to gain write permission as normal user (not root) but after every reboot the permissions are getting changed. The owner is back to root. I can't write anything.
How to I make the permissions to persist ?

Image
I am paranoid about security !
User avatar
security_lover
Posts: 69
Joined: Thu Apr 22, 2021 9:54 am

Re: UFS (data) partition is auto mounting but becoming root owned after every reboot

Post by security_lover »

This is the only major remaining issue other the bluetooth that I am facing. If anyone knows how to fix this please reply.
I am paranoid about security !
User avatar
security_lover
Posts: 69
Joined: Thu Apr 22, 2021 9:54 am

Re: UFS (data) partition is auto mounting but becoming root owned after every reboot

Post by security_lover »

I added the partition of /etc/fstab & now its a weird situation. Please see attachment.

Code: Select all

> cat /etc/fstab
# Device		Mountpoint		FStype		Options	Dump Pass
procfs			/proc			procfs		rw		00
linprocfs		/compat/linux/proc	linprocfs	rw		00
tmpfs /compat/linux/dev/shm tmpfs rw,mode=1777 0 0
linsysfs /compat/linux/sys linsysfs rw 0 0
fdesc /dev/fd fdescfs rw 0 0
/dev/ada0p1 /home/bsd/spinning ufs     rw              0       2
Attachments
partition error.png
partition error.png (6.31 KiB) Viewed 12854 times
partition.png
partition.png (21.53 KiB) Viewed 12854 times
I am paranoid about security !
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: UFS (data) partition is auto mounting but becoming root owned after every reboot

Post by ericbsd »

having fstab to mount partition that automounts take are of not a good idea.
You should upgrade to 21.05.01.
User avatar
security_lover
Posts: 69
Joined: Thu Apr 22, 2021 9:54 am

Re: UFS (data) partition is auto mounting but becoming root owned after every reboot

Post by security_lover »

ericbsd wrote: Tue May 04, 2021 10:21 am having fstab to mount partition that automounts take are of not a good idea.
You should upgrade to 21.05.01.
Never done that before. How do I do that ? By downloading the new ISO and reinstalling ?
I am paranoid about security !
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: UFS (data) partition is auto mounting but becoming root owned after every reboot

Post by ericbsd »

The safest way to do it is reinstalled since it is a complex upgrade, but some have done the upgrade with this https://forums.ghostbsd.org/viewtopic.php?p=9295#p9295.

Next major upgrade (13 to 14), I will have it working with the update manager.
User avatar
security_lover
Posts: 69
Joined: Thu Apr 22, 2021 9:54 am

Re: UFS (data) partition is auto mounting but becoming root owned after every reboot

Post by security_lover »

Code: Select all

~> sudo pkg info os-generic-userland | grep Version
Version        : 20.12.25
https://wiki.ghostbsd.org/index.php/How ... prerelease
How to upgrade from a prerelease

Eric Turgeon, [12.03.20 02:07] on Telegram

os pkg upgrade

Code: Select all

> sudo os pkg upgrade
sudo: os: command not found
I am paranoid about security !
User avatar
security_lover
Posts: 69
Joined: Thu Apr 22, 2021 9:54 am

Re: UFS (data) partition is auto mounting but becoming root owned after every reboot

Post by security_lover »

One last question. For how long is 20.12.25 supported (The year & month) ? Or am I running a already unsupported version ?
I am paranoid about security !
User avatar
security_lover
Posts: 69
Joined: Thu Apr 22, 2021 9:54 am

Re: UFS (data) partition is auto mounting but becoming root owned after every reboot

Post by security_lover »

https://forums.ghostbsd.org/viewtopic.php?p=9384

You said :
GhostBSD is base on FreeBSD, but we don't have the same release model. GhostBSD has CI/CD approach, so the project has a rolling release approach.
So if its rolling then why the need to upgrade ?
I am paranoid about security !
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: UFS (data) partition is auto mounting but becoming root owned after every reboot

Post by ericbsd »

security_lover wrote: Tue May 04, 2021 10:34 am One last question. For how long is 20.12.25 supported (The year & month) ? Or am I running a already unsupported version ?
It is not supported anymore.
Post Reply