Find the answer to your Linux question:
Results 1 to 4 of 4
hi guys, created a file called test1 in my documents, a simple text file. here is whats listed with ls -i -l 3541203 -rw-rw-r--. 1 j0n1n j0n1n 35 Apr 7 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2012
    Posts
    56

    changing ownership of file from command line


    hi guys,

    created a file called test1 in my documents, a simple text file.

    here is whats listed with ls -i -l

    3541203 -rw-rw-r--. 1 j0n1n j0n1n 35 Apr 7 16:45 test1

    so its owned by jonin and the jonin group

    im trying to just change it so the root user owns it

    went:

    chown root test1

    but i get:

    chown: changing ownership of `test1': Operation not permitted

    why cant i make root user owner...is this silly cause the root does automatically have all read write execution of all files on the system?

    am i better of making another user called user1 etc

    let me know

    complete noob here, messing around with bash

    thanks for reading

  2. #2
    Linux User zenwalker's Avatar
    Join Date
    Feb 2010
    Location
    Inland Empire
    Posts
    292
    Suggest searching within this forum for your answer or looking here
    "What you think about me is none of my business"
    _______________________________________________
    antiX | SolydX | Puppy Slacko

  3. #3
    Just Joined!
    Join Date
    Dec 2012
    Posts
    56
    yes that was a bit thick of me...i will check early posts and google info first in future...thanks for the link
    sorry

  4. #4
    Linux User zenwalker's Avatar
    Join Date
    Feb 2010
    Location
    Inland Empire
    Posts
    292
    No problem
    "What you think about me is none of my business"
    _______________________________________________
    antiX | SolydX | Puppy Slacko

Posting Permissions

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