LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-17-2005, 05:30 AM   #1
fredriksk
LQ Newbie
 
Registered: Nov 2003
Posts: 2

Rep: Reputation: 0
vsftpd uploaded files owned by group?


Hello!

I know there is a way to make uploaded files owned by a user. But is it posible to make uploaded files owned by a group?
 
Old 10-17-2005, 08:48 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
I assume you mean grouped by group rather than owned by group.

This is the purpose of the sgid bit. You group the directory to the group you want then add the sgid bit by prepending the permissions with a 2. For example if you want the directory to be rwxr-x-r-x (755) you would type "chmod 2755 dirname". The permissions would then show as "rwxr-s-r-x" The "s" where the "x" should have been lets you know the sgid bit is on. After that files created in the directory will have the same group as the directory itself.
 
  


Reply



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
users of VSFTPD can't chmod files they uploaded tclwp Linux - Networking 4 09-05-2008 07:28 AM
Re: Vsftpd uploaded files Permissions silver05 Linux - Software 2 09-30-2005 08:22 AM
vsftpd disallow specific file types from being uploaded GUIPenguin Linux - General 2 04-08-2005 10:04 AM
List files owned by user/group guideweb Linux - General 1 09-18-2004 08:18 PM
Make a file owned by root owned by a user sharpie Linux - Newbie 2 02-26-2004 01:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:36 PM.

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
Open Source Consulting | Domain Registration