[ubuntu-studio-devel] Introduction.

Ralf Mardorf ralf.mardorf at alice-dsl.net
Mon Jun 1 14:20:33 UTC 2015


On Mon, 1 Jun 2015 16:14:30 +0200, Ralf Mardorf wrote:
>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
>>>
>>> card=43
>>> tuner=69
>>> ************************
>>>
>>> in other versions of Studio there was no need to be root but in Wily
>>> yes.
>>>
>>>
>>>    
>>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.    
>
>+1
>
>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
>uid=1000(rocketmouse) gid=1000(rocketmouse)
>groups=1000(rocketmouse),10(wheel),50(games),91(video),92(audio),93(optical),95(storage),98(power),100(users),108(vboxusers)
>rocketmouse $ sudo -i
># id ; echo $USER
>uid=0(root) gid=0(root)
>groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),19(log)
>root # logout
>$ su
>]# id ; echo $USER
>uid=0(root) gid=0(root)
>groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),19(log)
>rocketmouse
>
>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.  

Note, for the second example not having a root account isn't an issue
either, just for compatibility reasons you need to care about it, since
a root account could become an issue.



More information about the ubuntu-studio-devel mailing list