Code:
#getfacl sis_group
and then get the result
Code:
group:sis1:rwx
would advise if I would like to change group from sis1 to sis2 , the getfacl result should be as below , what can I do ? thanks
Code:
group:sis2:rwx
#getfacl sis_group
group:sis1:rwx
group:sis2:rwx
setfacl -Rdm o::rwx /home/_images/entities
root@server1 [~]# getfacl /home/_images/entities/ getfacl: Removing leading '/' from absolute path names # file: home/_images/entities/ # owner: root # group: root user::rwx group::rwx other::rwx default:user::rwx default:group::rwx default:other::rwx
root@server1 [/home/_images/entities]# ls -l total 24 drwxrwxrwx+ 5 root root 4096 Jan 14 06:25 ./ drwxrwxrwx 5 root root 4096 Jan 12 13:08 ../ drwxrwxr-x+ 3 user1 user1 4096 Jan 14 06:25 1/
root@server1 [/home/_images/entities/1]# ls -l total 236 drwxrwxr-x+ 3 user1 user1 4096 Jan 14 06:25 ./ drwxrwxrwx+ 5 root root 4096 Jan 14 06:25 ../ -rw-rw-rw- 1 user1 user1 225569 Jan 14 06:25 689048f221ab7c556f4d482a9d92b2d6.jpg drwxrwxr-x+ 2 user1 user1 4096 Jan 14 06:25 thumbs/
alice@alice:~$ grep 1003 /etc/group alice:x:1003: alice@alice:~$ grep 1003 /etc/passwd alice:x:1003:1003:Alice,,,:/home/alice:/bin/bash
alice@alice:~$ ls -ld dollstuff drwxrwxr-x 2 alice alice 4096 Jan 28 10:55 dollstuff
alice@alice:~$ grep 1005 /etc/group common:x:1005:alice,dilbert,wally
alice@alice:~$ chgrp common dollstuff chgrp: changing group of ‘dollstuff’: Operation not permitted
[linux@localhost ~]$ (sleep 6 && echo "A test") & [1] 3312 [linux@localhost ~]$ echo $! 3312 [linux@localhost ~]$ A test
./dbsync &>/dev/null & [1] 5047 [linux@localhost comm5]$ echo $! 5047
echo $!
sudo ./file.sh
./file.sh
sudo chmod 777 ./file.sh
chmod 777
sudo chmod 777
./VMware-Player-6.0.1-1379776.x86_64.bundle
Failed to build vmnet. Failed to execute the build command.
Module vmnet not loaded
vmware-modconfig --console --install-all
make: Leaving directory `/tmp/modconfig-2NfFeS/vmnet-only' Unable to install all modules.
sudo cp -r *.* /<dest folder owned by root>
info coreutils 'cp invocation'
/usr/bin/find /backup/ -type d -mtime +1 -print0 | xargs -0 rm -rf
55 5 * * * /usr/bin/find /backup/ -type d -mtime +1 -print0 | xargs -0 rm -rf
Mar 30 05:55:01 server CROND[9526]: (root) CMD (/usr/bin/find /backup/ -type d -mtime +1 -print0 | xargs -0 rm -rf)
Match Group ftpusers ChrootDirectory /home/%u/ ForceCommand internal-sftp AllowAgentForwarding no AllowTcpForwarding no X11Forwarding no
[global] syslog = 0 log file = /var/log/samba/log.%m read raw = no write raw = no passdb backend = tdbsam workgroup = DOMAIN usershare allow guests = yes socket options = TCP_NODELAY pam password change = yes passwd program = /usr/bin/passwd %u unix password sync = yes obey pam restrictions = yes passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . server role = standalone server server string = %h server (Samba, Ubuntu) max log size = 1000 map to guest = bad user panic action = /usr/share/samba/panic-action %d dns proxy = no [Customer] force create mode = 755 browsable = yes public = yes path = /home/sftpuser/SFTP/Customer force directory mode = 755 writeable = yes valid users = @ftpusers force group = ftpusers write list = @ftpusers
total 4 drwxrwx---+ 2 sftpuser ftpusers 4096 Apr 9 11:35 Customer
1 -Change location to the top-level directory of the source distribution.
/
# cd / root@- /# tar xzvf /home/normal/Downloads/mysql-connector-c-6.1.6-src.tar.gz root@- /# cd /mysql-connector-c-6.1.6-src/ root@- /mysql-connector-c-6.1.6-src# cmake -G "Unix Makefiles" root@- /mysql-connector-c-6.1.6-src# make root@- /mysql-connector-c-6.1.6-src# make install
ln -s /usr/local/mysql-5.6.25/include /usr/include
# gcc ctemp.c In file included from ctemp.c:2:0: /usr/include/mysql.h:57:27: fatal error: mysql_version.h: No such file or directory #include "mysql_version.h" ^
ls -ld /dir drwxrwxrwx. 2 root root 4096 Jan 8 00:06 dir chmod 2777 /dir [this sets the setgid bit on] ls -ld /dir drwxrwsrwx. 2 root root 4096 Jan 8 00:06 /dir
chmod 4777 /dir [for setting setuid bit on] drwsrwsrwx. 2 root root 4096 Jan 8 00:06 /dir
chmod -s /dir
chmod 4777 /dir drwsrwxrwx. 2 root root 4096 Jan 8 00:06 /dir