Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- zsh: permission denied: ./bc.sh
- sudo mount -t cifs -o username=user,passwordpass=,exec,rw,users,file_mode=0777,dir_mode=0777 //192.168.0.3/folder /mnt/Win7
- -rwxrwxrwx 0 root root 24 Dec 10 20:50 bc.sh
- #!/bin/bash
- echo "Test"
- sudo: unable to execute ./bc.sh: Permission denied
- sh path/to/bc.sh
- [liveuser@localhost-live ~]$ ls -l ~/*.sh
- -rw-rw-rw-. 1 liveuser liveuser 28 Mar 25 07:55 /home/liveuser/testnox.sh
- -rwxrwxrwx. 1 liveuser liveuser 28 Mar 25 07:23 /home/liveuser/test.sh
- [liveuser@localhost-live ~]$ ~/test.sh
- Hello world.
- [liveuser@localhost-live ~]$ ~/testnox.sh
- bash: /home/liveuser/testnox.sh: Permission denied
- [liveuser@localhost-live ~]$ sh ~/testnox.sh
- Hello world.
- [liveuser@localhost-live ~]$ sestatus
- SELinux status: enabled
- SELinuxfs mount: /sys/fs/selinux
- SELinux root directory: /etc/selinux
- Loaded policy name: targeted
- Current mode: enforcing
- Mode from config file: enforcing
- Policy MLS status: enabled
- Policy deny_unknown status: allowed
- Max kernel policy version: 30
- [liveuser@localhost-live ~]$ sudo setenforce 0
- [liveuser@localhost-live ~]$ sestatus
- SELinux status: enabled
- SELinuxfs mount: /sys/fs/selinux
- SELinux root directory: /etc/selinux
- Loaded policy name: targeted
- Current mode: permissive
- Mode from config file: enforcing
- Policy MLS status: enabled
- Policy deny_unknown status: allowed
- Max kernel policy version: 30
- [liveuser@localhost-live ~]$ sudo setenforce 1
- [liveuser@localhost-live ~]$ sestatus
- SELinux status: enabled
- SELinuxfs mount: /sys/fs/selinux
- SELinux root directory: /etc/selinux
- Loaded policy name: targeted
- Current mode: enforcing
- Mode from config file: enforcing
- Policy MLS status: enabled
- Policy deny_unknown status: allowed
- Max kernel policy version: 30
- [liveuser@localhost-live ~]$ ls -l original
- total 4
- -rwxrwxr-x. 1 liveuser liveuser 28 Mar 25 08:14 test.sh
- [liveuser@localhost-live ~]$ ls -l alias
- total 4
- -rwxrwxr-x. 1 liveuser liveuser 28 Mar 25 08:14 test.sh
- [liveuser@localhost-live ~]$ original/test.sh
- Hello world.
- [liveuser@localhost-live ~]$ alias/test.sh
- bash: alias/test.sh: Permission denied
- [liveuser@localhost-live ~]$ sh alias/test.sh
- Hello world.
- [liveuser@localhost-live ~]$ sudo mount -o remount,exec --bind original alias
- [liveuser@localhost-live ~]$ alias/test.sh
- Hello world.
Add Comment
Please, Sign In to add comment