dapper sudo
Nikhil Fernandes
njfernandes at gmail.com
Tue Jul 4 16:25:21 UTC 2006
On Tue, 2006-07-04 at 10:35 -0400, ubuntu at rio.vg wrote:
> Alexander Skwar wrote:
> > boricua wrote:
> >> how come dapper does not allow me to do this
> >>
> >> sudo cat /dev/null > /var/log/apache2/error.log
> >
> > This doesn't have anything to do with dapper. What makes
> > you think so? Does the above work at a different distribution?
> >
>
> Because Ubuntu insists on "use sudo for everything", "never log in as
> root", "root doesn't even have a password to let you log in as root".
> Most other distro's don't have this policy. Someone coming from another
> distro or another flavor of Unix is used to using the standard su.
> After becoming root, the above command would work, minus the superfluous
> sudo.
>
>
or you could do:
sudo -i
cat /dev/null > /var/log/apache2/error.log
exit
The extra security of sudo makes the extra steps worth it to me (I used
to be an FC5 user).
Nikhil
More information about the ubuntu-users
mailing list