Results 1 to 9 of 9

Thread: You are not the owner so you can not change the permissions

  1. #1
    Join Date
    Oct 2017
    Beans
    20

    You are not the owner so you can not change the permissions

    Why is this happening to my file? I tried some commands but did not work. Any help?

  2. #2
    Join Date
    Nov 2010
    Location
    India
    Beans
    Hidden!

    Re: You are not the owner so you can not change the permissions

    once you are in directory of that file, execute below command and provide the output.

    who am i
    and

    ls -l yourfilename
    Dont miss anything even it is small. one small pin is enough to bring down a man.


  3. #3
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    6,125
    Distro
    Xubuntu

    Re: You are not the owner so you can not change the permissions

    I think you should make that
    Code:
    whoami
    without the spaces.

    Read up on file permissions. They are at the basis of security in UNIX-like operating systems like Linux.
    https://help.ubuntu.com/community/FilePermissions

    Also, on what kind of file system is that file you want to change permissions of? If it's a non-Linux file system (like Windows or most removable drives) things can be rather different, but I expect a different error message in that case.

  4. #4
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    12,446
    Distro
    Ubuntu

    Re: You are not the owner so you can not change the permissions

    If I where to bet I'd put money on running something involving the file with sudo, like sudo cp(copy) or sudo some-editor...
    I tried some commands but did not work.
    Post the commands you tried.
    If you need some help remembering them, look in the .bash_history file
    You could use
    Code:
    cat .bash_history
    or if that file is really long and you know the last commands you tried you can cut the output to only the last few entries with tail
    Code:
    tail .bash_history
    The dot signifies the file is a hidden file.
    And as long as you are in top level of your home folder you can simply run the command above. (the ~$ sign means you are, anything else means you would not be)
    If by chance you cd'd into another directory, then you would need to run the above commands with the fule path name, like /home/you/.bash_history.

    Hope it helps
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  5. #5
    Join Date
    Oct 2017
    Beans
    20

    Re: You are not the owner so you can not change the permissions

    EDIT 1
    I tried
    Code:
    root@freq-VirtualBox:~# gksudo nautilus 
    No protocol specified
    
    
    (gksudo:2580): Gtk-WARNING **: cannot open display: :0
    it didnt work.
    also tried
    Code:
    root@freq-VirtualBox:~# sudo chown -R freq /home/Desktop/dumpster
    Code:
    whoami
    gives
    Code:
    root
    Last edited by frequencyg; November 20th, 2017 at 02:35 PM.

  6. #6
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    6,125
    Distro
    Xubuntu

    Re: You are not the owner so you can not change the permissions

    To get more familiar with sudo:
    https://help.ubuntu.com/community/RootSudo

    sudo is meant to gain root permissions. There's no need to use sudo (or gksudo) when you're already root.

    It would be very strange if the directory /home/Desktop existed. That would be the home directory of user Desktop. It seems things are pretty well mixed up. What do you get from
    Code:
    ls -l /home

  7. #7
    Join Date
    Oct 2017
    Beans
    20

    Re: You are not the owner so you can not change the permissions

    Hello,
    i get
    Code:
    total 4
    drwxr-xr-x 24 freq freq 4096 (Νοέ  22 15:24)-<date in greek freq.

  8. #8
    Join Date
    Jun 2007
    Beans
    17,337

    Re: You are not the owner so you can not change the permissions

    Do you always use a root terminal??
    Anyway, assuming you are using Ubuntu 17.10 & nautilus -
    You cannot (or shouldn't) open nautilus as root with older methods, to get a root nautilus with some restrictions -
    Open nautilus, change to location entry (ctrl+l
    Type this in, press enter
    admin://
    or specify, ex. /etc
    admin:///etc

    For a root gedit open gedit from terminal & specify file - ex. /etc/fstab
    gedit admin:///etc/fstab

    (- you may need to enter password twice.

    Otherwise find another file manager & for text files use nano or I guess sudo -H gedit will still be ok. (- sudo -H nautilus is Not ok..

  9. #9
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    6,125
    Distro
    Xubuntu

    Re: You are not the owner so you can not change the permissions

    Your /home and /home/freq seem normal and it's quite obvious why your command
    Code:
    root@freq-VirtualBox:~# sudo chown -R freq /home/Desktop/dumpster
    failed, as that directory doesn't exist. So, everything seems normal and I don't really see what's your problem. It's best if you copy-paste everything from the terminal: prompt, command and response.

    Some things with sudo and graphical applications changed with Ubuntu 17.10, at least when using a wayland session, and not all documentation is up to date.

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
  •