[ubuntu-studio-devel] Introduction.

Ralf Mardorf ralf.mardorf at alice-dsl.net
Tue Jun 2 01:59:01 UTC 2015


On Mon, 1 Jun 2015 12:34:01 -0700 (PDT), Len Ovens wrote:
>On Mon, 1 Jun 2015, Ralf Mardorf wrote:
>
>> On Mon, 1 Jun 2015 09:47:51 -0400, Mike Holstein wrote:
>>>>
>>> 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.
>
>sudo bash -l

or sudo -i, but it doesn't work if you want to list directly.

$ id rocketmouse
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)

$ id chuser
uid=1001(chuser) gid=1001(chuser) groups=1001(chuser),10(wheel),50(games),91(video),92(audio),93(optical),95(storage),100(users),1000(rocketmouse),108(vboxusers)

$ su -c "ls -hAogdvp /.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"

lrwxrwxrwx 1 24 May 25 05:34 /.chuser/.home/.jwmrc -> /home/rocketmouse/.jwmrc
lrwxrwxrwx 1 40 May 24 13:01 /.chuser/.home/.config/Trolltech.conf -> /home/rocketmouse/.config/Trolltech.conf
lrwxrwxrwx 1 34 May 25 05:37 /.chuser/.home/.config/fbpanel -> /home/rocketmouse/.config/fbpanel/
lrwxrwxrwx 1 46 May 22 12:46 /.chuser/.home/.config/gtk-3.0/settings.ini -> /home/rocketmouse/.config/gtk-3.0/settings.ini
lrwxrwxrwx 1 34 May 25 05:37 /.chuser/.home/.config/lxpanel -> /home/rocketmouse/.config/lxpanel/
lrwxrwxrwx 1 33 May 24 12:55 /.chuser/.home/.config/openbox -> /home/rocketmouse/.config/openbox
lrwxrwxrwx 1 28 May 22 12:30 /.chuser/.home/.gtkrc-2.0 -> /home/rocketmouse/.gtkrc-2.0
lrwxrwxrwx 1 51 May 25 05:44 /.chuser/.home/.rocketmouse/openbox-jwm-profile -> /home/rocketmouse/.rocketmouse/openbox-jwm-profile/


$ sudo ls -hAogdvp /.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

ls: cannot access /.chuser/.home/.jwm*: No such file or directory
ls: cannot access /.chuser/.home/.config/Trolltech.conf*: No such file or directory
ls: cannot access /.chuser/.home/.config/gtk-3.0/settings.ini*: No such file or directory
ls: cannot access /.chuser/.home/.config/openbox*: No such file or directory
ls: cannot access /.chuser/.home/.gtkrc-2.0*: No such file or directory
lrwxrwxrwx 1 34 May 25 05:37 /.chuser/.home/.config/fbpanel -> /home/rocketmouse/.config/fbpanel/
lrwxrwxrwx 1 34 May 25 05:37 /.chuser/.home/.config/lxpanel -> /home/rocketmouse/.config/lxpanel/
lrwxrwxrwx 1 51 May 25 05:44 /.chuser/.home/.rocketmouse/openbox-jwm-profile -> /home/rocketmouse/.rocketmouse/openbox-jwm-profile/


$ sudo -u chuser ls -hAogdvp /.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

ls: cannot access /.chuser/.home/.jwm*: No such file or directory
ls: cannot access /.chuser/.home/.config/Trolltech.conf*: No such file or directory
ls: cannot access /.chuser/.home/.config/gtk-3.0/settings.ini*: No such file or directory
ls: cannot access /.chuser/.home/.config/openbox*: No such file or directory
ls: cannot access /.chuser/.home/.gtkrc-2.0*: No such file or directory
lrwxrwxrwx 1 34 May 25 05:37 /.chuser/.home/.config/fbpanel -> /home/rocketmouse/.config/fbpanel/
lrwxrwxrwx 1 34 May 25 05:37 /.chuser/.home/.config/lxpanel -> /home/rocketmouse/.config/lxpanel/
lrwxrwxrwx 1 51 May 25 05:44 /.chuser/.home/.rocketmouse/openbox-jwm-profile -> /home/rocketmouse/.rocketmouse/openbox-jwm-profile/



More information about the ubuntu-studio-devel mailing list