Re: [Hampshire] Directory permissions in Ubunut v Debian

Top Page

Reply to this message
Author: Alan Pope
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Directory permissions in Ubunut v Debian
On Thu, May 01, 2008 at 08:40:54PM +0100, Paul Tansom wrote:
> Without, and this is what started me down this road and what I'm trying
> to get to. On my Debian boxes a standard user account can't get into
> /var/log/exim4, but I'm presuming on a Ubuntu box you can otherwise
> you'd have trouble administering it without either root or a sudo shell


That makes no sense. You're _presuming_ that Ubuntu has a) no root, _and_ no
"sudo shell" (by which I assume you mean 'a shell invoked under sudo')

Lets see:-

alan@bishop:~$ tail -n 1 /var/log/exim4/mainlog
tail: cannot open `/var/log/exim4/mainlog' for reading: Permission denied

Thats as me, the first user created on that box (running Ubuntu).

alan@bishop:~$ sudo tail -n 1 /var/log/exim4/mainlog
Password:
2008-05-01 21:51:38 End queue run: pid=31868

That was me issuing a one-time sudo action.

alan@bishop:~$ sudo -k

That's me getting rid of the sudo timestamp so I know nobody can walk up to
my machine and do "sudo rm -rf /".

alan@bishop:~$ sudo -s
Password:
root@bishop:~# whoami
root

Look at me ma! I got root on ubuntu!

Would it have been easier in the long run to just _ask_ the question rather
than rattle on with your Ubuntu hate, invoking the further Ubuntu hatred
from those stuck in their respective debian muds. :(

Less hate and assumption please.

Cheers,
Al.