LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 02-22-2009, 02:40 AM   #1
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Rep: Reputation: 31
Accessing problem


Hello,
i am using fedora 8.0.....in my fedora i am having one user..thats my name..but when i enter in to my login no commands are working properly...but when i login as root all are working fine......can anyone tell me why it happens...what to do for that?
 
Old 02-22-2009, 02:44 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,501

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
which commands are you using?
errormessages?

For certain commands, you need to be root in order to execute them.
you can use
Code:
su
to become root, or if installed and configured
Code:
sudo command

Last edited by repo; 02-22-2009 at 02:45 AM.
 
Old 02-22-2009, 02:51 AM   #3
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Original Poster
Rep: Reputation: 31
no its not working when i use sudo too....what to do?whats the problem?i cant diagonise it....
 
Old 02-22-2009, 02:54 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,501

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
what is the command you are trying to use?
what doesn't work.
what is the errormessage?
please give more info.
 
Old 02-22-2009, 03:54 AM   #5
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Original Poster
Rep: Reputation: 31
if i type any command its coming as "command not found".....
 
Old 02-22-2009, 03:56 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,501

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
which command?
is your path correctly set?
Code:
echo $PATH
what happens if you type
Code:
/bin/df
 
Old 02-22-2009, 10:12 PM   #7
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Original Poster
Rep: Reputation: 31
This is the output of both commands

[sharief@localhost Desktop]$ echo $PATH
/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/sharief/bin



[sharief@localhost Desktop]$ /bin/df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 36927788 8522296 26499380 25% /
tmpfs 1032928 12 1032916 1% /dev/shm
[sharief@localhost Desktop]$
 
Old 02-23-2009, 12:09 AM   #8
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,150

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Commands that are reserved for "root" are usually in directories called "sbin" instead of "bin," and none of those directories are in your PATH so, by default, you cannot access them as yourself. (Remember, Linux is based on UNIX which is a multi-user system desigend to prevent "common" users from messing with the parts of the system that effect every user. Contrast that to the Windows system which is based on a single-user, hobbyist, system with no system security.)

From your post it's clear that some commands are working for you. So, what are you trying to do that's not working? And, did you get any output from the sudo command? (Do a su -c 'cat /etc/sudoers' to see how to configure that file so you can use the sudo command.)
 
Old 02-23-2009, 12:36 AM   #9
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
If it was not made clear before, su gives you root power with the user's path. su - (su space dash) gives you root power and root's path. A lot of commands need both root power and root's path. For the most part I just skip su and pretty much use su - exclusively.
 
Old 02-23-2009, 02:20 AM   #10
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,501

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Quote:
This is the output of both commands

[sharief@localhost Desktop]$ echo $PATH
/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/sharief/bin


[sharief@localhost Desktop]$ /bin/df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 36927788 8522296 26499380 25% /
tmpfs 1032928 12 1032916 1% /dev/shm
[sharief@localhost Desktop]$
So what happens if you type df?
 
Old 02-23-2009, 02:55 AM   #11
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Original Poster
Rep: Reputation: 31
The output of df is as follows

[sharief@localhost ~]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 36927788 8524532 26497144 25% /
tmpfs 1032928 12 1032916 1% /dev/shm
[sharief@localhost ~]$


Last edited by shariefbe; 02-23-2009 at 03:02 AM.
 
Old 02-23-2009, 02:59 AM   #12
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,501

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
and if you type this as user?
Because that is the problem, no commands work as user
 
Old 02-23-2009, 03:00 AM   #13
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Original Poster
Rep: Reputation: 31
This is the output of sudo is


[sharief@localhost ~]$ sudo insmod atl2.ko
Password:
sharief is not in the sudoers file. This incident will be reported.
 
Old 02-23-2009, 03:06 AM   #14
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,501

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
then you need to add sharief to the sudo users

take a look at
http://www.mjmwired.net/resources/mj...-fc6.html#sudo
 
Old 02-23-2009, 03:18 AM   #15
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Original Poster
Rep: Reputation: 31
yes i added accourding to that steps...but i am getting

[sharief@localhost /]$ sudo insmod atl2.ko
sudo: insmod: command not found
[sharief@localhost /]$


This is another problem.....am getting this error message when i type a command in normal user..i dont know why its happening...
 
  


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
Problem in accessing website nitaish Linux - Software 1 05-02-2007 02:59 PM
problem accessing the internet jeffry Linux - Networking 1 05-11-2006 01:12 AM
Problem when accessing to file. crime Linux - Newbie 2 04-15-2006 02:19 AM
Accessing second drive problem diana_chen23 Linux - Hardware 5 07-06-2005 11:01 AM
ACcessing problem hk_michael Linux - Networking 1 03-30-2005 11:52 PM


All times are GMT -5. The time now is 03:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration