LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-10-2011, 01:06 AM   #1
medspec
LQ Newbie
 
Registered: Jan 2009
Posts: 11

Rep: Reputation: 0
Exclamation GID / UID change after FTP upload


I have CENTOS server with suPHP installed. The user (UID) and group (GID) are different for PHP files. But when I upload any file using FTP, it makes user:user and suphp fails to parse it. I then change the ownership (using ssh) as user:group for the php file and it works. I want to know where is the problem here? and how to solve it?
 
Old 03-10-2011, 02:09 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

Depends on how your settings are. You can solve it in an easy way by setting the group ownership on the directory and setting the sticky bit on the group level. That way every file that gets created in that directory gets the correct group settings. Look at man pages for:
Code:
man chown
man chmod
Kind regards,

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Differences between UID 0 and GID 0? dwarf007 Linux - Newbie 6 03-16-2010 05:52 AM
what is uid and gid rmanocha Linux - Software 9 08-19-2008 12:03 AM
What is my uid/gid? Jeebizz Slackware 2 11-22-2005 12:39 PM
How can I change a user's uid and gid? homesp Debian 2 05-31-2005 03:39 PM
After UID change can no longer ftp meshking Linux - General 4 07-13-2004 03:44 AM


All times are GMT -5. The time now is 10:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration