LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-15-2003, 03:01 PM   #1
bongski55
Member
 
Registered: May 2003
Location: Somewhere in Asia
Distribution: ubuntu on Dell, Vista,XP triple boot
Posts: 276
Blog Entries: 1

Rep: Reputation: 30
User Permissions?Root?


Here is what happened just now:

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?
 
Old 06-15-2003, 03:08 PM   #2
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
Try using "su -" for it to setup the full environment as root.
 
Old 06-15-2003, 11:19 PM   #3
bongski55
Member
 
Registered: May 2003
Location: Somewhere in Asia
Distribution: ubuntu on Dell, Vista,XP triple boot
Posts: 276

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Of course su - will work. What I wanted was to use 'su' so that I will still be in the directory of the normal user. 'su -' brings me to root home.

Besides when I 'su -' kedit is not working error is 'cannot connect to x server'.
 
Old 06-16-2003, 01:36 AM   #4
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
Mandy simlinks dir to ls, slack by default doesn't... so try ls.
 
Old 06-16-2003, 03:29 AM   #5
bongski55
Member
 
Registered: May 2003
Location: Somewhere in Asia
Distribution: ubuntu on Dell, Vista,XP triple boot
Posts: 276

Original Poster
Blog Entries: 1

Rep: Reputation: 30
'ls' works so does 'insmod' and many others. How can I make kedit work after 'su'?

thanks
 
Old 06-16-2003, 03:40 AM   #6
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
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.
 
Old 06-16-2003, 10:03 AM   #7
mrpdaemon
Member
 
Registered: Jun 2003
Distribution: Slackware 9.1
Posts: 41

Rep: Reputation: 15
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..
 
Old 06-17-2003, 07:13 AM   #8
bongski55
Member
 
Registered: May 2003
Location: Somewhere in Asia
Distribution: ubuntu on Dell, Vista,XP triple boot
Posts: 276

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Azmeen's reply is a COMPLETE OPPOSITE to what is happening here. If I use su only I cannot 'dir' or 'kedit'-both having 'command not found 'errors.

thanks everybody for replying. I think I can live with 'ls' and su- for the moment.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using root permissions with another user JWT2 Linux - Security 11 10-06-2005 08:13 PM
blfs non-root user permissions frostillicus Linux From Scratch 2 04-16-2005 09:56 PM
Root permissions for a user Neutron1998 Linux - Newbie 1 09-30-2004 05:28 PM
Change my user to root permissions metalaid Linux - Newbie 5 01-19-2004 09:17 PM
Giving a user all root permissions ranixlb Linux - Security 9 05-15-2002 01:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration