Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th August 2007, 22:20
djkoelkast djkoelkast is offline
Member
 
Join Date: Sep 2006
Posts: 63
Thanks: 1
Thanked 1 Time in 1 Post
Default How to change file rights?

Hi,

I have Debian 4.0 + ISPC but now all files are uploaded through SCP as root, the users can't change/delete files now. How can I change the file rights so the users who log in through FTP can change them?
Reply With Quote
Sponsored Links
  #2  
Old 7th August 2007, 03:55
bschultz bschultz is offline
Senior Member
 
Join Date: Jul 2006
Posts: 222
Thanks: 11
Thanked 10 Times in 10 Posts
Default

run this command as root

Code:
chown newusername file.txt
Reply With Quote
  #3  
Old 7th August 2007, 05:50
djkoelkast djkoelkast is offline
Member
 
Join Date: Sep 2006
Posts: 63
Thanks: 1
Thanked 1 Time in 1 Post
Default

great! Can I also do this for all files/folders in that particular webXX/ folder?
and username is the ftp login name?
Reply With Quote
  #4  
Old 7th August 2007, 09:55
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,202
Thanks: 829
Thanked 5,420 Times in 4,262 Posts
Default

Quote:
Originally Posted by djkoelkast
great! Can I also do this for all files/folders in that particular webXX/ folder?
Yes, when you use the -R switch:

chown -R newusername file.txt

Quote:
and username is the ftp login name?
Yes.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 9th August 2007, 08:39
ustoopia ustoopia is offline
Junior Member
 
Join Date: Dec 2006
Location: Netherlands
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Default

to change the group also (i advise to do so) use this:

Code:
chown -R web16_user:web16 /var/www/web16/web
In this example I used web16 but ofcourse you must use something else there
Reply With Quote
  #6  
Old 10th August 2007, 16:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

If you want to change the group, but not the owner, you can also use
Code:
chgrp -R web16 /var/www/web16/web
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 10th August 2007, 16:26
djkoelkast djkoelkast is offline
Member
 
Join Date: Sep 2006
Posts: 63
Thanks: 1
Thanked 1 Time in 1 Post
 
Default

cool, thanks a lot
I don't use webXX prefix, I don't know which site is which web number, I use the domainname as prefix but I understand what to do
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 03:40
Dspam planet_fox General 6 20th January 2007 18:42
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 05:19
jamed up my table borders?? Boon-Dog-Danny Installation/Configuration 5 23rd September 2006 16:12


All times are GMT +2. The time now is 03:06.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.