LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 08-10-2005, 05:04 PM   #1
branque
LQ Newbie
 
Registered: Jan 2005
Location: Nottingham @ UK
Distribution: Debian, Fedora Core, Suse
Posts: 9

Rep: Reputation: 0
ssh && su problem...


ssh && su problem...

This is a n00b question ... I have installed Fedore Core 3 on an machine connected to a private network, updated all software, installed apache+mysql, started ssh service, started firewall/selinux with default settings.
Then I use Putty software on a remove windows machine on network to logon as restricted user, type su to get superuser rights and then tries to use ifconfig but get no access, command not found. I also tries to restart apache webserver, apachectl, but same thing, command not found. I have as logged on as root, changed my user account to be included in the same user groups as root user, but no affect. I dont know what I have missed...
My problem is this machine will be located outside UK connected to internet so I need ssh access with su root rights. I dont want to use PermitRootLogin option in ssd.

Suggestions ?

// Patrick, Nottingham, UK.
 
Old 08-10-2005, 05:08 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
You have to use su - (su + dash) to get the environment variables of the root user, rather than keeping the variables of the account that you logged in with.

Root's path variable has /sbin in it, but other users don't. So this works for root or with su -:

ifconfig eth0

With just su or as a normal user you need to do this:

/sbin/ifconfig eth0
 
Old 08-12-2005, 04:19 PM   #3
branque
LQ Newbie
 
Registered: Jan 2005
Location: Nottingham @ UK
Distribution: Debian, Fedora Core, Suse
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks hob

It works when Im using /sbin/ifconfig but its more simple to use su - insteed.
 
Old 08-13-2005, 05:32 AM   #4
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Using su - is recommended, unfortunately it's not obvious
 
  


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
zsnes && logitech dual action gamepad && dpad woes John5788 Linux - Games 5 10-29-2008 09:56 PM
CVS & SSH & Public/private keys guideweb Linux - Software 15 09-09-2005 01:06 PM
(FreeBSD && Fedora Core 4 && Slackware 10.0) Filesystem Support taylor_venable *BSD 1 07-14-2005 02:24 PM
Japanese canna won't work : Warning: かな漢字変&am OrganicOrange84 Debian 3 06-30-2005 02:28 PM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM


All times are GMT -5. The time now is 02:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration