Find the answer to your Linux question:
Results 1 to 2 of 2
First and foremost, I hope I'm not violating any rules of the forum. If I am, I apologize and I will make every effort to read the entire guidelines to ...
  1. #1
    Just Joined!
    Join Date
    Dec 2006
    Posts
    1

    Smile Hello ! I'm new and need help!!! ( Help!!!!) General Q&A

    First and foremost, I hope I'm not violating any rules of the forum. If I am, I apologize and I will make every effort to read the entire guidelines to the forum before breaking any future rules of etiquette.

    Secondy. I hope everyone is having a great holiday! Happy Holidays!

    Thirdly. I am very new at Linux and have a general question that I am hoping someone will answer.


    And Finally the Question.....

    How do I change the owner and group ( CHOWN - CHGRP) of a file on the same command line?


    TIA.

    Bill

  2. #2
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    Quote Originally Posted by NubieLinux
    First and foremost, I hope I'm not violating any rules of the forum. If I am, I apologize and I will make every effort to read the entire guidelines to the forum before breaking any future rules of etiquette.
    You weren't really breaking any rules, but it's best to start a new thread for questions in the appropriate section of the forum. The Coffee Lounge is more of a "anything goes" off-topic section, not somewhere you post genuine questions.

    How do I change the owner and group ( CHOWN - CHGRP) of a file on the same command line?

    You can run two commands in sequence by separating them with semicolons, if I'm not mistaken. For instance:

    Code:
    chmod 777 somefile; chgrp users somefile
    Is that what you're asking?
    Registered Linux user #270181
    TechieMoe's Tech Rants

Posting Permissions

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