Results 1 to 10 of 10
  1.    #1  
    This is the error I am getting. Does anyone know how to fix?
  2. #2  
    paste your /opt/etc/sudoers file
  3. #3  
    and you dont need to do sudo /opt/bin/ipkg... because you are already root
  4.    #4  
    login as: dbarrett480
    dbarrett480@10.10.10.142's password:
    dbarrett480@castle:~$ /opt/etc/sudoers
    -sh: /opt/etc/sudoers: Permission denied
    dbarrett480@castle:~$ su
    root@castle:/var/home/dbarrett480# /opt/etc/sudoers
    sh: /opt/etc/sudoers: Permission denied
    root@castle:/var/home/dbarrett480# visudo
    >>> /opt/etc/sudoers: syntax error near line 31 <<<
    >>> /opt/etc/sudoers: syntax error near line 32 <<<
    >>> /opt/etc/sudoers: syntax error near line 33 <<<
    >>> /opt/etc/sudoers: syntax error near line 35 <<<
    # sudoers file.
    #
    # This file MUST be edited with the 'visudo' command as root.
    # Failure to use 'visudo' may result in syntax or file permission errors
    # that prevent sudo from running.
    #
    # See the sudoers man page for the details on how to write a sudoers file.
    #

    # Host alias specification

    # User alias specification

    # Cmnd alias specification

    # Defaults specification

    # Runas alias specification

    # User privilege specification
    root ALL=(ALL) ALL

    # Uncomment to allow people in group wheel to run all commands
    - /opt/etc/sudoers.tmp 1/36 2%
    # sudoers file.
    #
    # This file MUST be edited with the 'visudo' command as root.
    # Failure to use 'visudo' may result in syntax or file permission errors
    # that prevent sudo from running.
    #
    # See the sudoers man page for the details on how to write a sudoers file.
    #

    # Host alias specification

    # User alias specification

    # Cmnd alias specification

    # Defaults specification

    # Runas alias specification

    # User privilege specification
    root ALL=(ALL) ALL

    # Uncomment to allow people in group wheel to run all commands
    # %wheel ALL=(ALL) ALL

    # Same thing without a password
    # %wheel ALL=(ALL) NOPASSWD: ALL

    # Samples
    # %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
    # %users localhost=/sbin/shutdown -h now
    ALL=(ALL) ALL
    ALL=(ALL) ALL
    ALL=(ALL) ALL
    dbarrett480 ALL=(ALL) ALL
    ALL=(ALL) ALL
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    - /opt/etc/sudoers.tmp 1/36 2%
    Last edited by dbarrett5381; 06/15/2009 at 12:40 PM.
  5. #5  
    well, just dont do sudo... you are already root.
    Heres my sudoers:

    root@castle:/var/home/mundra# cat /opt/etc/sudoers
    # sudoers file.
    #
    # This file MUST be edited with the 'visudo' command as root.
    # Failure to use 'visudo' may result in syntax or file permission errors
    # that prevent sudo from running.
    #
    # See the sudoers man page for the details on how to write a sudoers file.
    #

    # Host alias specification

    # User alias specification

    # Cmnd alias specification

    # Defaults specification

    # Runas alias specification

    # User privilege specification
    root ALL=(ALL) ALL

    # Uncomment to allow people in group wheel to run all commands
    # %wheel ALL=(ALL) ALL

    # Same thing without a password
    # %wheel ALL=(ALL) NOPASSWD: ALL

    # Samples
    # %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
    # %users localhost=/sbin/shutdown -h now
    mundra ALL=(ALL) ALL
  6. #6  
    Quote Originally Posted by whoiswhois View Post
    well, just dont do sudo... you are already root.
    Heres my sudoers:

    root@castle:/var/home/mundra# cat /opt/etc/sudoers
    # sudoers file.
    #
    # This file MUST be edited with the 'visudo' command as root.
    # Failure to use 'visudo' may result in syntax or file permission errors
    # that prevent sudo from running.
    #
    # See the sudoers man page for the details on how to write a sudoers file.
    #

    # Host alias specification

    # User alias specification

    # Cmnd alias specification

    # Defaults specification

    # Runas alias specification

    # User privilege specification
    root ALL=(ALL) ALL

    # Uncomment to allow people in group wheel to run all commands
    # %wheel ALL=(ALL) ALL

    # Same thing without a password
    # %wheel ALL=(ALL) NOPASSWD: ALL

    # Samples
    # %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
    # %users localhost=/sbin/shutdown -h now
    mundra ALL=(ALL) ALL
    I'm actually having this same problem. And no, we don't seem to be already root, because I'm getting permission denied trying to run something and its saying "logged in as root?". Did the OP here figure out what was wrong here? I even added my username after root in this file and saved and still doesn't seem I have permissions. What is the deal?
  7. #7  
    Quote Originally Posted by volcom45 View Post
    I'm actually having this same problem. And no, we don't seem to be already root, because I'm getting permission denied trying to run something and its saying "logged in as root?". Did the OP here figure out what was wrong here? I even added my username after root in this file and saved and still doesn't seem I have permissions. What is the deal?
    Did you make the root filesystem writable (ie root_fs -w or root_fs -t)?

    Remember to make read-only when you are finished (ie mount -o remount,ro /)
    Last edited by 1lnxraider; 07/08/2009 at 12:06 PM. Reason: Note: Remember to make read-only when you are finished.
  8. #8  
    Quote Originally Posted by 1lnxraider View Post
    Did you make the root filesystem writable (ie root_fs -w or root_fs -t)?

    Remember to make read-only when you are finished (ie mount -o remount,ro /)
    Ah, that might have been the prob! Thanks for the help, I'll give it a try and see if thats the issue.
  9. #9  
    Oops... To make the root filesystem writable the command is rootfs_open -w or you can use mount -o remount,rw /.
  10. Bigfire's Avatar
    Posts
    259 Posts
    Global Posts
    543 Global Posts
    #10  
    Quote Originally Posted by 1lnxraider View Post
    Did you make the root filesystem writable (ie root_fs -w or root_fs -t)?

    Remember to make read-only when you are finished (ie mount -o remount,ro /)


    You can't make the system writable if you don't have permission. It's like trying to change my user profile on this website with your login information...I've been searching threads for ways to repair my syntax error (line 35 apparently in the sudoer file), and so far all the comments from people have been to modify this file or that file, when the problem is that I CAN'T modify a file I don't have permission to modify!

    Trying to decide right now if I should be patient and hope someone on here has a workaround....or if I have to give up my mods/root apps to back up and reset to factory defaults with the WebOS doctor

    Patient advise is greatly welcomed, and may be Paypal rewarded.


    EDIT: Decided to use WebOS Doctor to reset this whole process. Trying to decide now if I want to restart all the modding I did already, or if I should be leary of some of the files/mods/applications that are on this site. How much confidence can I have that I am not downloading corrupted files????

    The hackers that roam these sites are the same people programming viruses to send computers to the shops they work for, to boost business. Maybe its worth waiting until the application in question is approved for distribution by Palm???
    Last edited by bigfire; 07/31/2009 at 08:17 AM.

Posting Permissions