5,653 reputation
1832
bio website init.se
location Stockholm, Sweden
age 43
visits member for 2 years, 4 months
seen 1 hour ago

I'm a unix sysadmin, working as a consultant at Init AB (www.init.se).

Previous jobs include sysadmin in charge of security related systems at a large bank, and mail servers at a largish ISP, including handling abuse and spam issues.

Email address: jenny@init.se


Nov
22
comment How to prevent `mv` from moving a collection of files into a single regular one?
@G-Man Good points, both of them. I never even thought of shopt -s globstar, thanks for mentioning it!
Nov
21
comment disk space by individual user
The first one looks at the root directory of the server (/), the second only at /etc/main. Neither of them will show the subdirectories under /etc/main; in order to do that, you need to add a *. You can either go to /etc/main and write du -s * | sort -nr or you can write du -s /etc/main/* |sort -nr in order to get the file sizes of each subdirectory.
Nov
21
comment disk space by individual user
@NageshwaranM Those commands look very strange to me, presumably due to markdown formatting... Could you rewrite them, using the code markes (`) around the commands?
Nov
21
comment How to prevent `mv` from moving a collection of files into a single regular one?
There's More Than One Way To Do It :-)
Nov
21
comment How to prevent `mv` from moving a collection of files into a single regular one?
You could probably build something combining find and mv, e.g. find /music -type d -exec mv {}/*90.mp3 targetdir\; - but now I feel a bit like I'm overcomplicating it, and simply using -i or -t is more efficient
Nov
21
comment How to prevent `mv` from moving a collection of files into a single regular one?
@syntaxerror Very true - I meant this as an example of how mv behaves, not as a criticism of your choice of tools.
Nov
21
comment disk space by individual user
@Hackaholic If you're on an OS where du supports that... FreeBSD does, as does SuSE, but e.g. RHEL doesn't. I don't have Solaris or HP-UX available for testing, but my memory is that they don't. That's why I used -s - it's more portable.
Nov
17
comment Webserver establishing new outgoing connections from port 443
@QuestionOverflow I'm sorry, I don't have the best answer for this. But I'd have a look at pretty much everything that has the word timeout without udp or icmp... You could also post a new question specifically about how to configure conntrack; if you do, please include your current config and hopefully someone will be able to help you.
Nov
4
comment Unable to Configure Quotas in RHEL6 & CentOS6- quotecheck returns error message
Please type that into the Answer box, I promise to upvote it if you do and leave a comment.
Oct
27
comment search a command in PATH with the same name of the script
@eadmaster At some point you really have to step up and take responsibility for setting up your environment the way you want to. Multiple entries are easy to deal with; man sed will tell you how to fix it. Symlinks - less easy, still possible. But, as I said from the start, if you want your $PATH to look a particular way, then you need to set it yourself (preferably in your profile/.bashrc), and then simply use common sense.
Oct
25
comment search a command in PATH with the same name of the script
@eadmaster Edited in a fix for that.
Oct
25
comment search a command in PATH with the same name of the script
@Gilles I think one of us has misunderstood the problem, because that comment does not make sense to me from how the question was phrased.
Oct
24
comment search a command in PATH with the same name of the script
@eadmaster Code snippet added. (note that I used { as the separator because it gets boring writing a \ before each / in the sed command...)
Oct
24
comment search a command in PATH with the same name of the script
The search order is standardized. Since you can set your own path, you can set it so that $HOME/bin is last. Or you can put these particular scripts in a different directory (e.g. $HOME/scripts) and add that directory last to your path.
Oct
21
comment Unable to Configure Quotas in RHEL6 & CentOS6- quotecheck returns error message
Great that you found the solution! It would be very much appreciated if you could take a few moments to write it into an answer that you can accept and I can upvote too... (There might be a timelimit before you can do this since you're a new user, but it would be really helpful for others if you could hang around and do that!)
Oct
20
comment Unable to Configure Quotas in RHEL6 & CentOS6- quotecheck returns error message
What are the permissions on /hulk?
Oct
13
comment CentOS 6.5 Apache redirection from external access
Output from your webserver logs would help.
Oct
13
comment Linux solution for schools?
@fonix232 Is there any of the answers here that you think would be good enough for the bounty I put on the question?
Oct
13
comment ssh public key authentication not working
The key that is successfully verified is the server's host key - your own private key is not being verified successfully. Do you have access to the sshd logs of the remote server? Also, what are the permissions of your own home directory on the remote server?
Oct
2
comment Unknown sendmail entries in logfile
You're welcome! If you want to thank someone, an upvote is also a nice way of doing it :-)