Results 1 to 6 of 6
  1. #1
    peter2010 is offline Sophomore
    Join Date
    Jun 2011
    Posts
    129
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Feedback Score
    0

    Default Create files with specified owner

    Hey guys.

    Anyway, I have today been working on a class to zip/unzip files on the server for a project I am helping with.

    However, since the files are spawned by a server process when they are made (zip is made, or files extracted from one) the server gets ownership of the files and not my account, so I am unable to do anything to them afer they are made.

    Is there anyway to get around that and have the files be created with my account having ownership of them?

    I have already tried chown();, but as Im not a superuser it doesnt work for me.

  2. #2
    Sather123 is offline Junior
    Join Date
    Jul 2011
    Posts
    300
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Feedback Score
    0

    Default

    The user and group has been changed with a single command. Just like with chgrp the chown command will take the –R (recursive) option and apply the chown command to a directory and its subdirectories.

  3. #3
    Mensink123 is offline Junior
    Join Date
    Jul 2011
    Posts
    440
    Thanks
    0
    Thanked 4 Times in 4 Posts
    Feedback Score
    0

    Default

    How to change a file's owner and group in Linux - 1.0
    Learn how to change the owner and group ownership of files and directories with the chown and chgrp commands. This tuXfile will make much more sense if you already have a basic understanding of file permissions and ownership.

  4. #4
    Dasman123 is offline Banned
    Join Date
    Jul 2011
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    Specified owner , the data for "specified units" exclude mobile homes, houses with a business or medical office, houses on 10 or more acres, and housing units in multi-unit buildings.

  5. #5
    johnalden is offline Freshman
    Join Date
    Apr 2011
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    I am also searching for this solution. Whenever I got the answer of that, I will share. thanks

  6. #6
    johnalden is offline Freshman
    Join Date
    Apr 2011
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    Nice share. thanks

    Replica Watches

Similar Threads

  1. Replies: 15
    Last Post: 12-29-2011, 12:33 PM
  2. Does DoFollow help the blog owner?
    By altesino in forum Blogging
    Replies: 27
    Last Post: 02-10-2011, 07:52 AM
  3. Easy way to make pdf files and create link on site
    By Abina in forum Graphics Design & Web Design
    Replies: 0
    Last Post: 01-05-2010, 07:48 AM
  4. Craigslist Owner a Lier?
    By mastermind in forum General Business
    Replies: 2
    Last Post: 12-11-2009, 06:57 PM
  5. Who is the owner of DirectoryRate
    By elgharib2008 in forum Directories
    Replies: 0
    Last Post: 10-27-2009, 11:08 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Partners: BOSTON WEB DEVELOPER, LLC   |   WEBCOSMO CLASSIFIEDS