Results 1 to 6 of 6
-
10-17-2011, 05:14 AM #1
Sophomore
- Join Date
- Jun 2011
- Posts
- 129
- Thanks
- 0
- Thanked 2 Times in 2 Posts
- Feedback Score
- 0
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.
-
11-04-2011, 01:29 AM #2
Junior
- Join Date
- Jul 2011
- Posts
- 300
- Thanks
- 0
- Thanked 2 Times in 2 Posts
- Feedback Score
- 0
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.
-
11-04-2011, 01:53 AM #3
Junior
- Join Date
- Jul 2011
- Posts
- 440
- Thanks
- 0
- Thanked 4 Times in 4 Posts
- Feedback Score
- 0
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.
-
11-04-2011, 02:04 AM #4
Banned
- Join Date
- Jul 2011
- Posts
- 342
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
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.
-
11-04-2011, 02:35 AM #5
Freshman
- Join Date
- Apr 2011
- Posts
- 22
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
I am also searching for this solution. Whenever I got the answer of that, I will share. thanks
-
11-15-2011, 05:40 AM #6
Freshman
- Join Date
- Apr 2011
- Posts
- 22
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
Nice share. thanks
Replica Watches
Similar Threads
-
Man urinates on dog after owner refuses to have sex with him
By manik in forum General TalkReplies: 15Last Post: 12-29-2011, 12:33 PM -
Does DoFollow help the blog owner?
By altesino in forum BloggingReplies: 27Last Post: 02-10-2011, 07:52 AM -
Easy way to make pdf files and create link on site
By Abina in forum Graphics Design & Web DesignReplies: 0Last Post: 01-05-2010, 07:48 AM -
Craigslist Owner a Lier?
By mastermind in forum General BusinessReplies: 2Last Post: 12-11-2009, 06:57 PM -
Who is the owner of DirectoryRate
By elgharib2008 in forum DirectoriesReplies: 0Last Post: 10-27-2009, 11:08 AM


Reply With Quote

