ralf.mardorf at alice-dsl.net
Mon Jun 1 14:14:30 UTC 2015
On Mon, 1 Jun 2015 09:47:51 -0400, Mike Holstein wrote:
>On Monday, June 1, 2015, Grant Burton <bbbabynet at gmail.com> wrote:
>> I got in as root, I just had to create a root password first.
>> to get my TV card to work I need to do this
>> sudo gedit /etc/modprobe.d/saa7134.conf
>> options saa7134 card=43 tuner=69
>> sudo rm /etc/modprobe.d/saa7134.conf
>> sudo gedit /etc/modprobe.d/options.conf
>> in other versions of Studio there was no need to be root but in Wily
>There's no need in this version. Those commands do not require root.
>You run the sudo commands as the normal user. You don't need to enable
>the root account. You don't need a root password.
Very seldom there is the need to have a root account. An exception is
e.g. to list directories of another user with (or likely also without) a
freakish home by a script.
$ grep "su" /usr/local/bin/openbox-profile | grep -v echo
su -c "ls -hAogdvp
--color=$lscolor /.chuser/.home/.jwm* /.chuser/.home/.config/Trolltech.conf* /.chuser/.home/.config/fbpanel /.chuser/.home/.config/gtk-3.0/settings.ini* /.chuser/.home/.config/lxpanel /.chuser/.home/.config/openbox* /.chuser/.home/.gtkrc-2.0* /.chuser/.home/.rocketmouse/openbox-jwm-profile"
Another issue could be related to this:
$ id ; echo $USER
rocketmouse $ sudo -i
# id ; echo $USER
root # logout
]# id ; echo $USER
In most cases there's no need to have a root account.
For the second example, simply don't let your scripts test $USER, but
$(id -u), resp. $(id -un) instead.
More information about the ubuntu-studio-devel