Find the answer to your Linux question:
Results 1 to 7 of 7
I have a great tool, but can only use it fully when log in as root, but not when log in as regular user. When I want to view dmesg, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Aug 2009
    Posts
    156

    Smile You don't have enough permissions to read the file. for Log File Viewe


    I have a great tool, but can only use it fully when log in as root, but not when log in as regular user. When I want to view dmesg, I get, You don't have enough permissions to read the file. How do I change permissions for this application, which is under applications, System tools, Log File Viewer? I am trying to solve other problems and am in dire need of this tool. I guess I am still a noob.

  2. #2
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,042
    I'd try sudo to use the command with root access ...

  3. #3
    Linux Newbie
    Join Date
    Aug 2009
    Posts
    156
    Quote Originally Posted by Jonathan183 View Post
    I'd try sudo to use the command with root access ...
    What command would I type...sudo Log File Viewer ? Similar to gksudo nautilus?

  4. #4
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    Do you know the command to launch it from a terminal window?
    If so, then yeah... just tack sudo to the front of it.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  5. #5
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,042
    make sure you have sudo installed emerge -pv sudo
    after that check what commands your user has sudo -l
    if necessary add entries to sudoers using visudo
    ... man sudo visudo sudoers should help

  6. #6
    Linux Newbie
    Join Date
    Aug 2009
    Posts
    156
    Quote Originally Posted by Jonathan183 View Post
    make sure you have sudo installed emerge -pv sudo
    after that check what commands your user has sudo -l
    if necessary add entries to sudoers using visudo
    ... man sudo visudo sudoers should help
    Here is my sudo -l from regular user terminal:

    frank@frank ~ $ sudo -l
    Password:
    User frank may run the following commands on this host:
    (ALL) ALL
    frank@frank ~ $

    The problem is I don't know the correct command to follow sudo with.

  7. #7
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,042
    Quote Originally Posted by frank56 View Post
    I have a great tool, but can only use it fully when log in as root, but not when log in as regular user. When I want to view dmesg, I get, You don't have enough permissions to read the file. How do I change permissions for this application, which is under applications, System tools, Log File Viewer? I am trying to solve other problems and am in dire need of this tool. I guess I am still a noob.
    when you login as root what do you type to view a log file?
    login as root and use which to find out location of the script/binary you are using to view the log file

    Quote Originally Posted by frank56 View Post
    Here is my sudo -l from regular user terminal:

    frank@frank ~ $ sudo -l
    Password:
    User frank may run the following commands on this host:
    (ALL) ALL
    frank@frank ~ $

    The problem is I don't know the correct command to follow sudo with.
    output of sudo -l indicates user frank can run any command but will be prompted for your password

Posting Permissions

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