Reputation
501
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
3 6
Newest
 Good Answer
Impact
~22k people reached

  • 0 posts edited
  • 0 helpful flags
  • 6 votes cast
May
26
awarded  Good Answer
Sep
23
awarded  Yearling
Jul
19
answered SSH from osx to osx and then use agent
Jul
18
comment chowning each home user to itself recursively
@val0x00ff: Using && is checking the status code. My code is just a more verbose way of accomplishing the same.
Jul
18
comment chowning each home user to itself recursively
@Iain: Understood, just want to make sure OP or anyone else considering a script is thinking of the caveats.
Jul
18
comment chowning each home user to itself recursively
Use caution when writing scripts that cd to a target and perform operations. Consider this script is run by an administrator on a server where /home is in a bad state and the administrator is currently in /var. Everything in var would be chown -R root:root. I would recommend iterating directly on /home/* or using something like if [ $? -ne 0 ]; then echo Failed to cd to /home. Exiting!; exit 1; fi.
Aug
28
awarded  Commentator
May
28
awarded  Nice Answer
May
25
awarded  Yearling
Mar
6
comment Unable to delete file, even as root
If it were synced via rsync, the inode would change. The output of strace should prove to be interesting...
Mar
4
comment start apache script
Use sudo -l to confirm you see the command you're trying to configure after using visudo. sudo -l will tell you what commands you can run using sudo.
Feb
21
comment Join the executable and all its libraries
+1. For clarification, I believe you'd have to recompile the original binary as a static binary.
Feb
8
comment In bash, feed output of one command line-by-line into another command
+1 for herestring, I've always done this as while read line; do echo $line | xmllint...
Feb
8
answered Quick directory navigation in the terminal
Jul
8
comment Linux configuration settings
@Michael - I guess I'm just either more paranoid or more cynical than you. Perhaps both. :)
Jul
5
comment Linux configuration settings
@Caleb: A specific list of files to look for with no background on why someone would want to know just smells awfully "homeworkey" to me. I suppose there's a chance he just has a new Linux box and no idea how to configure it.
Jul
5
comment Linux configuration settings
Should we update the title of this to Can someone do my homework for me?
Jun
8
answered How can I set that only root + a given user can shut down my pc?
Jun
7
awarded  Critic
Jun
7
awarded  Supporter