258 reputation
37
bio website
location Dunedin, New Zealand
age 41
visits member for 4 years, 7 months
seen Dec 13 at 9:36

Nov
13
awarded  Yearling
Nov
8
awarded  Necromancer
Jan
9
awarded  Self-Learner
Apr
17
awarded  Notable Question
Apr
12
comment How do I know I'm running inside a linux “screen” or not?
You can also use byobu with screen and tmux. It can be setup to load automatically at login and then hitting F6 key disconnects and logs out.
Mar
15
comment Are separate dns records necessary for web and mail on a single server?
@MirceaVutcovici adding or changing the MX record doesn't change where the clients look for their mail services. As I understand it MX records are only for delivery and routing, not for clients to use.
Apr
30
awarded  Supporter
Apr
30
answered How to interrupt stuck bash tab completion?
Mar
2
awarded  Popular Question
Nov
5
awarded  Teacher
Aug
6
answered Ways to set umask on Ubuntu for daemon processes
Aug
6
awarded  Scholar
Aug
6
comment Ways to set umask on Ubuntu for daemon processes
The other method I mentioned using the pam_umask module also works, at least on Ubuntu 10.04. I will answer my own question with how to do that.
Aug
6
accepted Ways to set umask on Ubuntu for daemon processes
Aug
6
comment Ways to set umask on Ubuntu for daemon processes
I have also asked question on the daemons (yaws) mailing list. The best way is to add the umask setting in the daemon startup script in /etc/init.d/. Someone is even patching the daemons source code.
Aug
3
comment Ways to set umask on Ubuntu for daemon processes
This does not work under Ubuntu 10.04. This might be because /bin/sh is linked to /bin/dash, but I changed the daemons default shell to /bin/bash and still did not work. I think this is because $HOME/.profile does not get read by non-interactive and non-login bash or dash shells. I could not find any easy way to demonstrate this from the command line. Interactive shell umask can be shown with sudo -u daemon bash -c umask. I tested non-interactive by changing settings and restarting the daemon and looking at permissions on files it creates.
Aug
2
awarded  Editor
Aug
2
revised Ways to set umask on Ubuntu for daemon processes
deleted 12 characters in body
Aug
2
awarded  Student
Aug
2
asked Ways to set umask on Ubuntu for daemon processes