Results 1 to 6 of 6

Thread: Problem editing file with read only permissions on a debian install

  1. #1

    Problem editing file with read only permissions on a debian install

    Hey all!

    I'm having an issue getting write permissions on a file stored on the root of my flash drive. I was trying to access the file via Ubuntu 10.10 that was installed on another flash drive. The Debian install is on another drive for my Playstation 3, which is the drive i'm trying to access. On Ubuntu, I gave my self root access and tried two chmod commands being chmod ug+rw /media/ and chmod 754 /media. When I do that, I lose access to the drive. If i choose the location of the file, it says I can't access the file or the location doesn't exist. Any clue how would I solve this issue?

  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Problem editing file with read only permissions on a debian install

    What format is the flash drive? If it's FAT, you can't chown or chmod files on it.

    What error is it giving you when you try to access the folder or files?
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #3

    Re: Problem editing file with read only permissions on a debian install

    It's formated as ex4. I'll post the exact message when I get a chance to log back into ubuntu in a few mins.

  4. #4

    Re: Problem editing file with read only permissions on a debian install

    This is what I just got when I tried to use the chmod command.

    root@ubuntu:/media# chmod ug+rw /media/Ps3 Linux/kboot.conf
    chmod: cannot access `/media/Ps3': No such file or directory
    chmod: cannot access `Linux/kboot.conf': No such file or directory

    The directory is there, I mean I couldn't read the kboot.conf file if it wasn't! THe permissions for the file are set as:

    Onwer: root
    Group: root

    It also says SELinux context: unknown

    I can read the files, but I can't write to them.
    Last edited by Tiredofregisteringtoreg; February 27th, 2011 at 03:50 AM.

  5. #5
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Problem editing file with read only permissions on a debian install

    You need to escape spaces (or just use tab completion).

    Post the output of this:

    Code:
    ls -ld /media/Ps3\ Linux
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  6. #6

    Re: Problem editing file with read only permissions on a debian install

    I get this

    drwxr-xr-x 23 root root 4096 2011-02-26 05:59 /media/Ps3 Linux

    Never mind I got it now, thanks!
    Last edited by cariboo; February 27th, 2011 at 08:07 AM. Reason: remove huge font formatting

Bookmarks

Posting Permissions

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