Portál AbcLinuxu, 12. května 2025 05:38
chmod -R 777 /mnt/cely_disk_s_ubuntu
drwxr-xr-x 2 root root 4096 2006-06-07 03:11 bin/ drwxr-xr-x 4 root root 4096 2006-06-04 13:01 boot/ drwxr-xr-x 17 root root 3380 2006-06-07 15:03 dev/ drwxr-xr-x 3 root root 4096 2005-08-07 10:13 emul/ drwxr-xr-x 78 root root 4096 2006-06-07 18:11 etc/ drwxr-xr-x 7 root root 4096 2006-06-04 11:31 home/ drwxr-xr-x 2 root root 4096 2006-06-07 03:11 lib32/ drwxr-xr-x 9 root root 4096 2006-06-07 03:11 lib64/ drwx------ 26 root root 16384 2005-08-06 17:24 lost+found/ drwxr-xr-x 7 root root 4096 2006-05-05 22:20 media/ drwxr-xr-x 13 root root 4096 2006-06-07 05:44 opt/ drwxr-xr-x 27 root root 4096 2006-06-07 06:31 overlay/ drwxr-xr-x 156 root root 4096 2006-06-07 17:47 portage/ dr-xr-xr-x 117 root root 0 2006-06-06 15:41 proc/ drwx------ 61 root root 4096 2006-06-07 18:16 root/ drwxr-xr-x 2 root root 4096 2006-06-07 03:11 sbin/ drwxr-xr-x 11 root root 0 2006-06-06 15:41 sys/ drwxrwxrwt 59 root root 8192 2006-06-07 18:17 tmp/ drwxr-xr-x 15 root root 4096 2006-05-11 23:45 usr/ drwxr-xr-x 14 root root 4096 2006-05-09 16:12 var/
$ ls -l /usr/bin/sudo /etc/sudoers -r--r----- 1 root root 1504 2006-04-05 00:21 /etc/sudoers -rwsr-xr-x 2 root root 91700 2006-04-15 09:39 /usr/bin/sudoale předtím nech probehnout toto:
find / -type f -print0 | xargs chmod 644 find / -type d -print0 | xargs chmod 755 chmod 600 /etc/shadow find /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin -type f -print0 | xargs -0 chmod +x chmod 01777 /tmp /var/tmp chmod 700 /home/*
sudo
práva ---s--x--x
.
sudo
asi potřebuje setuid bit.
root@fungujici$ find / -printf '%m %p\n' >perm.list root@porouchany$ while read p f ; do chmod $p $f ; doneale v nejake efektivnejsi variante (sort | awk)...
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.