Eu procurei na rede e tentei aplicar respostas para problemas semelhantes, mas nenhum funcionou até agora. Existe uma pasta chamada ocrpaylasim
sob /home/bnet
caminho. Este arquivo pertencia ao bnet
user antes e foi anexado / montado a uma pasta compartilhada do Windows por meio de fstab
. No entanto, as permissões parecem estar quebradas. Eu não posso nem correr ls
.
Quando tento alterar a pasta com chown
e chmod
, estou recebendo Permission Denied
error. Mesmo root
não pode fazer nada (ls, rm, chmod e chown não estão funcionando)
A mensagem de erro é:
ls: cannot access ocrpaylasim: Permission denied
chown: cannot access ocrpaylasim: Permission denied
chmod: cannot access ocrpaylasim: Permission denied
Editar 1:
ls -lad /home
drwxr-xr-x 3 root root 4096 May 14 15:24 /home/
ls -lad /home/bnet
drwxr-xr-x 7 bnet bnet 4096 Oct 7 17:18 /home/bnet
id (with root)
uid=0(root) gid=0(root) groups=0(root)
ls -ld /home/bnet (with root)
drwxr-xr-x 7 bnet bnet 4096 Oct 7 17:18 /home/bnet
id (with bnet)
uid=1000(bnet) gid=1000(bnet) groups=1000(bnet),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),110(lpadmin),111(sambashare)
Editar 2:
ls -la
ls: cannot access ocrpaylasim: Permission denied
total 1692100
drwxr-xr-x 7 bnet bnet 4096 Oct 7 17:18 .
drwxr-xr-x 3 root root 4096 May 14 15:24 ..
-rwxr-xr-x 1 bnet bnet 11907 Sep 6 08:26 .bash_history
-rwxr-xr-x 1 bnet bnet 220 May 14 15:24 .bash_logout
-rwxr-xr-x 1 bnet bnet 3637 May 14 15:24 .bashrc
drwxr-xr-x 2 bnet bnet 4096 May 14 15:25 .cache
d????????? ? ? ? ? ? ocrpaylasim
-rwxr-xr-x 1 bnet bnet 675 May 14 15:24 .profile
drwxr-xr-x 2 bnet bnet 4096 Jul 1 15:41 .ssh
-rwxr-xr-x 1 root root 3402 Aug 13 10:25 .viminfo
Editar 3:
sudo chmod -R u=rwx,g=r,o=r /home/bnet/ocrpaylasim
chmod: cannot access ‘/home/bnet/ocrpaylasim’: Permission denied
sudo chown -R bnet:bnet /home/bnet/ocrpaylasim
chown: cannot access ‘/home/bnet/ocrpaylasim’: Permission denied
Editar 4:
mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
//**.**.**.**/temp on /home/bnet/ocrpaylasim type cifs (rw)