new in kubuntu
James Gray
james at gray.net.au
Thu Dec 7 19:51:26 UTC 2006
On 05/12/2006, at 10:41 AM, Kaj Haulrich wrote:
> On Monday 04 December 2006 23:50, xavier mas wrote:
>> Hi all,
>>
>> I am a new user in Kubuntu coming from Mandriva after six years
>> with it. So far, I think Kubuntu is fast and reliable, tough
>> don't like so much the missing superuser and sudo commad.
>> However, I have a questions about it that is: how can I see in
>> Konqueror the directory tree? I have only my home directory and
>> media directory in it. Also I'd like to know if there is any work
>> around to create a superuser.
>
> About Konqueror :
>
> In your / directory there is a file called @.hidden which contains
> directories to hide from view in Konqueror. You can edit that
> file - but don't delete it.
>
> For example : sudo mc (to open Midnight Commander)
> then F4 to edit and F2 to save.
Be careful running mc with sudo; it (mc) has a tendency to write out
its settings file in your home directory, and if it does that after
being executed with sudo the settings file will be owned by root.
Then the next time you run mc as your normal user account, you wont
be able to save any settings. Same applies to any other program you
execute as root.
All is not lost! Simply add the "-H" switch to sudo befpre running a
program and that will tell it to use root's home instead of yours :)
If you really want to get fancy you could alias "sudo -H" to
"mysudo". Edit ~/.bash_profile and add the following line:
alias mysudo="sudo -H"
While you're at it, you could also add a "rshell" alias for "root
shell":
alias rshell="sudo -H -s"
Voila! Who needs a "real" root account?! (man sudo is your friend)
Cheers,
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2426 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kubuntu-users/attachments/20061208/71d0b60c/attachment.bin>
More information about the kubuntu-users
mailing list