Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
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 ...
  1. #1
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308

    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?
    Thanks in advance...

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    root user is an Administrator of OS and it has full privileges. On the other hand, Regular users have limited privileges only.
    What commands are not working for Regular user?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308
    see for example i tried to enter into /root with sudo,but i am getting the below error message

    [sharief@localhost Desktop]$ sudo cd /root/
    Password:
    sharief is not in the sudoers file. This incident will be reported.
    Thanks in advance...

  4. #4
    Just Joined!
    Join Date
    Nov 2008
    Location
    PUNE
    Posts
    72
    Quote Originally Posted by shariefbe View Post
    see for example i tried to enter into /root with sudo,but i am getting the below error message

    [sharief@localhost Desktop]$ sudo cd /root/
    Password:
    sharief is not in the sudoers file. This incident will be reported.
    Hi

    I if you are trying to enter into root through command prompt

    Try this

    Code:
    su -
    password: ******
    About root's access explained in earlier reply by devils casper
    Assuming that you are trying to get in root and after finishing your root work simply type exit to come out of it

  5. #5
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308
    yes that i know....but when i type sudo why i am getting like this?Thats my problem here
    Thanks in advance...

  6. #6
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308
    i edited the file /etc/sudoers
    after editing this i am getting this error

    [sharief@localhost ~]$ sudo cd /root
    sudo: cd: command not found
    [sharief@localhost ~]$
    Thanks in advance...

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    You can't use sudo with cd command. It doesn't work like that.
    Most of folders including sudo has execution bit set for all users. You can use cd as regular user for any folder unless folder's execution bit has been unset explicitly.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #8
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308
    ya ok...now sudo is working fine....but othere commands are not working....see when try to remove a module..i get the below error

    [root@localhost 2.6.26]# rmmod atl2.ko
    bash: rmmod: command not found
    [root@localhost 2.6.26]#



    i am getting the same error when i am in normal user login....but when i am root, This command is working fine....
    Thanks in advance...

  9. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Why do you want to run rmmod command as Regular User? What will be the difference in Regular and root user?
    root user is an Administrator and has full privileges but Regular users have limited privileges only.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  10. #10
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308
    yes you are right...i too know that...but see there..error message is wrong...it should be as "permission denied"...but its coming as "command not found"..Thats s problem...not only this...this error message is coming for all command...
    Thanks in advance...

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...