Quantcast
Viewing all articles
Browse latest Browse all 2901

General Questions • Re: find: ‘/run/user/1000/doc’: Permission denied

Code:

# mount | grep fusefusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
I added the following snippet to all find command in the scrip, before 2>/dev/null:

Code:

! -path "/run/user/1000/doc" ! -path "/run/user/1000/gvfs"e.g: RESULT=$($SUDO_CMD find $FS_NAMES -xdev -ignore_readdir_race -type d \( -perm -0002 -a ! -perm -1000 \) ! -path "/run/user/1000/doc" ! -path "/run/user/1000/gvfs" -print 2>/dev/null)
But I still get that error:

Code:

# ./1.1.21_sticky_bit_world_writable_folder.sh --audit.1.21_sticky_bit_world_w [INFO] Working on 1.1.21_sticky_bit_world_writable_folder1.1.21_sticky_bit_world_w [INFO] [DESCRIPTION] Set sticky bit on world writable directories to prevent users from deleting or renaming files that are not owned by them.1.1.21_sticky_bit_world_w [INFO] Checking Configuration1.1.21_sticky_bit_world_w [INFO] Performing audit1.1.21_sticky_bit_world_w [INFO] Checking if setuid is set on world writable Directories1.1.21_sticky_bit_world_w [ KO ] Check failed with unexpected exit code: 1
Link to the debian hardening script: https://github.com/ovh/debian-cis/blob/ ... _folder.sh

Statistics: Posted by moha — 2024-11-25 08:46



Viewing all articles
Browse latest Browse all 2901

Trending Articles