SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I created using kuser manager a user.Nothing fancy just create and save .After a succesful 'su' I tried issuing "dir' command nbut got a "bash:dir command not found". Then I tried kedit and again a 'command not found' message.
Isuing this commands as normal user has no such errors.Dir and kedit worked.
This is strange as this did not happen in Mandrake.
Su is supposed to be 'super user' why this errors?
I'm recalling from some deep area in my brain right now, so this might not be accurate...
I believe when you do a plain ol su it's a temporary session. You can still use X apps for example... kedit somefile and kedit will run with root access level.
However, if you use su -, the session is like you've actually exit your current shell, and then log in as root. Therefore, theoretically, root hasn't got an X session running, and this causes kedit not to run (because it is an X app).
Gurus... if any of the above is wrong, please correct me.
Slack does not symlink dir to ls, but has a quite easy way of doing so. dircolors does alias dir to ls, as well as providing nice colorful output to ls. All you have to do is add:
eval `dircolors`
to your ~/.bashrc and you are set...
About the su - thing, I believe Azmeen to be quite right about it, i can not fire an ethereal from a "su -" shell (can not open display) but it is fine from a su shell.
Can not see why you need the - argument, can you not simulate any environment changes - if you need them? Just write a script to export any necessary variables..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.