You are not logged in.

#1 2022-06-13 05:30:40

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,243

chown not working [SOLVED]

Hi
I want to change the owner of /home/share
output of ls -l:

total 36
drwx------ 17 janluca janluca  4096 Jun 13 06:30 janluca/
drwxr-xr-x  2 root    root    32768 Jan  1  1970 share/

when i run sudo chown janluca:wheel share/:

chown: changing ownership of 'share/': Operation not permitted

if i do it as root it shows the same error.
the output of ls -l is unchanged.

Last edited by jl2 (2022-06-13 14:54:23)


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

#2 2022-06-13 07:24:19

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,268

Re: chown not working [SOLVED]

when i run sudo chown janluca:wheel share/:

sudo chown -R janluca:wheel /home/share

Also

mount
lsattr -d /home /home/share

Offline

#3 2022-06-13 14:04:38

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,243

Re: chown not working [SOLVED]

mount:

proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=8138224k,nr_inodes=2034556,mode=755,inode64)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755,inode64)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
/dev/sda2 on / type ext4 (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=812)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,size=8154248k,nr_inodes=1048576,inode64)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
ramfs on /run/credentials/systemd-sysusers.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
/dev/sda1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
/dev/sda3 on /home/share type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1630848k,nr_inodes=407712,mode=700,uid=1000,gid=1000,inode64)

lsattr -d /home /home/share

--------------e------- /home
lsattr: Operation not supported While reading flags on /home/share

Last edited by jl2 (2022-06-13 14:25:23)


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

#4 2022-06-13 14:08:54

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,243

Re: chown not working [SOLVED]

lsattr -d /home /home/share

--------------e------- /home
lsattr: Operation not supported While reading flags on /home/share

Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

#5 2022-06-13 14:11:05

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,268

Re: chown not working [SOLVED]

You're not supposed to mount anything but post the output of mount in case
a) you're trying to chown a mountpoint
b) the relevant partition is mounted read-only
c) using a read-only FS implementation

Please post the outputs of the latter two commands in #2 …

Offline

#6 2022-06-13 14:19:02

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,243

Re: chown not working [SOLVED]

a) is the right answer, b and c is not the case.
i cannot edit your post.

Last edited by jl2 (2022-06-13 14:24:36)


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

#7 2022-06-13 14:22:28

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,268

Re: chown not working [SOLVED]

post #2…
Please post the output of "mount"

Offline

#8 2022-06-13 14:24:22

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,405
Website

Re: chown not working [SOLVED]

Vfat doesn't support Unix permissions. See https://wiki.archlinux.org/title/FAT#Wr … ormal_user


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#9 2022-06-13 14:27:21

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,243

Re: chown not working [SOLVED]

thanks
mount is in #3


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

Board footer

Powered by FluxBB