Yep because that user is in the sudo group. You really should create a new user instead of using the pi user though. Just make sure to add the user to the ssh and sudo groups.
not work
Yep because that user is in the sudo group. You really should create a new user instead of using the pi user though. Just make sure to add the user to the ssh and sudo groups.
not work
What is the output of: stat aquota.user
What is the output of: stat aquota.user
$ stat aquota.user
File: aquota.user
Size: 8192 Blocks: 24 IO Block: 4096 regular file
Device: 804h/2052d Inode: 11 Links: 1
Access: (0600/-rw-------) Uid: ( 0/ root) Gid: (65534/ nogroup)
Access: 2019-12-06 12:53:38.164482294 +0300
Modify: 2019-12-06 12:53:37.784487440 +0300
Change: 2019-12-06 12:53:37.784487440 +0300
Birth: -
$
The file is the correct permissions. Try:
sudo chattr -i aquota.user
sudo rm -f aquota.user
The file is the correct permissions. Try:
sudo chattr -i aquota.user
sudo rm -f aquota.user
pi@raspberrypi:/sharedfolders/Seagate4tb $ rm aquota.user
rm: cannot remove 'aquota.user': Operation not permitted
pi@raspberrypi:/sharedfolders/Seagate4tb $ chmod 777 aquota.user
chmod: changing permissions of 'aquota.user': Operation not permitted
pi@raspberrypi:/sharedfolders/Seagate4tb $ sudo chattr -i aquota.user
chattr: Operation not permitted while setting flags on aquota.user
pi@raspberrypi:/sharedfolders/Seagate4tb $ sudo rm -f aquota.user
rm: cannot remove 'aquota.user': Operation not permitted
pi@raspberrypi:/sharedfolders/Seagate4tb $
This is a waste of time...
I just realized that you are trying to do this from the shared folder bind mount. You need to do this from the actual mountpoint for the filesystem - /srv/some/path/
This is a waste of time...
I just realized that you are trying to do this from the shared folder bind mount. You need to do this from the actual mountpoint for the filesystem - /srv/some/path/
$ cd /
$ dir
bin etc lib mnt root sharedfolders tmp
boot export lost+found opt run srv usr
dev home media proc sbin sys var
$ cd srv
$ dir
dev-disk-by-label-SeagateEXT4 ftp salt
dev-disk-by-label-WD1024 pillar
$ cd dev-disk-by-label-SeagateEXT4
$ dir
Ubuntu\ 18.04.pvm databasefinalcutpro torrents
aquota.group for_3d_render важное
aquota.user lightroom_sklad
$ rm aquota.user
rm: cannot remove 'aquota.user': Operation not permitted
$ sudo chattr -i aquota.user
[sudo] password for test:
chattr: Operation not permitted while setting flags on aquota.user
$ sudo rm -f aquota.user
rm: cannot remove 'aquota.user': Operation not permitted
$
Alles anzeigen
I'm done because you need to remove the quota options (,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0) from the fstab entries. This needs to be done in the OMV database (change mntent in /etc/openmediavault/config.xml) and the rewrite fstab (omv-mkconf fstab for omv 4.x or omv-salt deploy run fstab for omv 5.x). Then reboot. Then you can delete them using sudo. I'm moving on to important things so you have to figure out the stuff missing.
I'm done because you need to remove the quota options (,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0) from the fstab entries. This needs to be done in the OMV database (change mntent in /etc/openmediavault/config.xml) and the rewrite fstab (omv-mkconf fstab for omv 4.x or omv-salt deploy run fstab for omv 5.x). Then reboot. Then you can delete them using sudo. I'm moving on to important things so you have to figure out the stuff missing.
but i do not have records in the fstab:
proc /proc proc defaults 0 $
PARTUUID=6c586e13-01 /boot vfat defaults $
PARTUUID=6c586e13-02 / ext4 noatime,nodirati$
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that
# >>> [openmediavault]
/dev/disk/by-label/SeagateEXT4 /srv/dev-disk-by-label-S$
/dev/disk/by-label/WD1024 /srv/dev-disk-by-label-W$
# <<< [openmediavault]
but i do not have records in the fstab:
I see two that should have them. Your terminal is just cutting off the end. grep aquota /etc/fstab
1) i am delete usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 from /etc/openmediavault/config.xml
2) run command omv-salt deploy
3) run command reboot
4) go to directory /srv/dev-disk-by-label-SeagateEXT4
5) run command rm aquota.user and sudo chattr -i aquota.user and sudo rm -f aquota.user
and
Operation not permitted
<mntent>
<uuid>fd6478d5-75fd-426e-b430-f7ca7739d0fc</uuid>
<fsname>/dev/disk/by-label/SeagateEXT4</fsname>
<dir>/srv/dev-disk-by-label-SeagateEXT4</dir>
<type>ext4</type>
<opts>defaults,nofail,user_xattr,noexec,acl</opts>
<freq>0</freq>
<passno>2</passno>
<hidden>0</hidden>
</mntent>
<mntent>
<uuid>462a779e-0ae2-404b-93ae-912a0f647b17</uuid>
<fsname>/dev/disk/by-label/WD1024</fsname>
<dir>/srv/dev-disk-by-label-WD1024</dir>
<type>ext4</type>
<opts>defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl</opts>
<freq>0</freq>
<passno>2</passno>
<hidden>0</hidden>
</mntent>
Alles anzeigen
Alles anzeigen1) i am delete usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 from /etc/openmediavault/config.xml
2) run command omv-salt deploy
3) run command reboot
4) go to directory /srv/dev-disk-by-label-SeagateEXT4
5) run command rm aquota.user and sudo chattr -i aquota.user and sudo rm -f aquota.user
and
Operation not permitted
For command number 2) above, there is more to it than that. It might be as below but I am not sure. The Salt stuff is all new and I do not know where it is documented, if at all yet.
omv-salt deploy run fstab
That is correct on the salt command. And you have to disable the quota service not just stop it.
For command number 2) above, there is more to it than that. It might be as below but I am not sure. The Salt stuff is all new and I do not know where it is documented, if at all yet.
omv-salt deploy run fstab
it was not easy! Thanks, all worked well!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!