linux

差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

兩邊的前次修訂版 前次修改
下次修改
前次修改
linux [2016/08/28 12:59] jzlinux [2018/03/26 09:36] (目前版本) jz
行 1: 行 1:
-**Linux**+====== Linux from Scrach ======
  
 [[http://www.linuxfromscratch.org/|Linux from Scrach]] [[http://www.linuxfromscratch.org/|Linux from Scrach]]
  
 ====== Give sudo access to only a particular command ====== ====== Give sudo access to only a particular command ======
 +http://askubuntu.com/questions/90726/is-it-possible-to-give-sudo-access-to-only-a-particular-command
 <code bash> <code bash>
-Make a new group, web (call it what you wish) +Make a new group, web (call it what you wish)
 sudo addgroup web sudo addgroup web
-Add your developer(s) to the web group (use their login name). 
  
 +# Add your developer(s) to the web group (use their login name).
 sudo usermod -a -G web your_developer(s) sudo usermod -a -G web your_developer(s)
-Then run sudo visudo 
- 
-Add in a line 
  
 +# Then run sudo visudo
 +# Add in a line
 %web ALL=(ALL) /usr/bin/service apache2 * %web ALL=(ALL) /usr/bin/service apache2 *
-The developers can then run 
  
 +# The developers can then run
 sudo service apache2 * sudo service apache2 *
 +
 +**Do NOT add your admin user to the web group**
 </code> </code>
 +
 +
 +====== Hardware information ======
 +
 +  * inxi -Fx
 +  * lscpu
 +  * lshw -short
 +  * hwinfo --short
 +  * lspci
 +  * lsscsi
 +  * lsusb
 +  * lsblk
 +  * df -h
 +  * fdisk -l
 +  * mount | column -t
 +  * free -m
 +  * dmidecode
 +  * cat /proc/cpuinfo
 +  * cat /proc/version
 +  * cat /proc/scsi/scsi
 +  * cat /proc/partitions
 +  * hdparm -i /dev/sda
 +  * lstopo
 +
 +http://www.binarytides.com/linux-commands-hardware-info/
 +
 +====== ldap ======
 +
 +[[ldap|ldap]]
 +
 +===== Coredump =====
 +
 +Disable coredump
 +
 +<code>
 +sysctl -w kernel.core_pattern=|/bin/false
 +ulimit -c 0
 +</code>
 +
 +**Ref**
 +https://www.kernel.org/doc/Documentation/sysctl/kernel.txt
  • linux.1472360353.txt.gz
  • 上一次變更: 2016/08/28 12:59
  • jz