#1  
Old 24th December 2008, 08:13
newmember newmember is offline
Junior Member
 
Join Date: Dec 2008
Posts: 19
Thanks: 0
Thanked 1 Time in 1 Post
Default chroot and file permissions

This was kind of interesting, I added chroot to my sshd.
And I changed my Management->System Config->User Prefix: to user[WEBID]_ from web[WEBID]_.

Now when I create a new user I get a folder:

Code:
/var/www/web15/user/user15_chrisw/
and in this folder I get all the standard folders. What is interesting is that all the folders in that directory are owned by root and not user15_chrisw or group web15.

It was just interesting, I noticed that I was uploading files to what I thought was my website:

Code:
/var/www/web15/web
but I was actually uploading them to
Code:
/var/www/web15/users/user15_chrisw/web

Code:
root@server-isp:/var/www/web15# ls -l
total 24
drwxrwxr-x 2 root web15 4096 2008-12-23 20:26 cgi-bin
drwxr-xr-x 2 root web15 4096 2008-12-23 20:26 log
drwxrwxrwx 2 root web15 4096 2008-12-23 20:26 phptmp
drwxr-xr-x 2 root web15 4096 2008-12-23 20:26 ssl
drwxr-xr-x 3 root web15 4096 2008-12-23 21:13 user
drwxrwxr-x 3 root web15 4096 2008-12-23 20:26 web


Code:
root@server-isp:/var/www/web15# ls -l user/
total 4
drwxr-xr-x 11 user15_chrisw web15 4096 2008-12-23 21:18 user15_chrisw
Code:
root@server-isp:/var/www/web15# ls -l user/user15_chrisw/
total 32
drwxr-xr-x 2 root          root  4096 2008-12-23 21:13 bin
drwxr-xr-x 2 user15_chrisw web15 4096 2008-12-23 21:18 chrisw
drwxr-xr-x 2 root          root  4096 2008-12-23 21:13 dev
drwxr-xr-x 4 root          root  4096 2008-12-23 21:14 etc
drwxr-xr-x 4 root          root  4096 2008-12-23 21:14 lib
drwxr-xr-x 4 root          root  4096 2008-12-23 21:13 usr
drwxr-xr-x 3 root          root  4096 2008-12-23 21:14 var
drwxrwxr-x 2 user15_chrisw web15 4096 2008-12-23 22:58 web

Last edited by newmember; 24th December 2008 at 08:16. Reason: to change the title, but could not move the post to ISPconfig forum
Reply With Quote
Sponsored Links
  #2  
Old 25th December 2008, 10:53
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
Default

Quote:
Originally Posted by newmember View Post
It was just interesting, I noticed that I was uploading files to what I thought was my website:

Code:
/var/www/web15/web
but I was actually uploading them to
Code:
/var/www/web15/users/user15_chrisw/web
You must check the administrator checkbox for that user. Afterwards he can upload to /var/www/web15/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
  #3  
Old 31st December 2008, 02:25
newmember newmember is offline
Junior Member
 
Join Date: Dec 2008
Posts: 19
Thanks: 0
Thanked 1 Time in 1 Post
Default

Is it ok with ISPconfig to edit the /etc/passwd file directly to allow multiple people to have access to /var/www/web15/web ?
Reply With Quote
  #4  
Old 31st December 2008, 13:03
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,897
Thanks: 693
Thanked 4,190 Times in 3,208 Posts
 
Default

No, ISPConfig will remove your changes automatically.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
Bind chroot configuration Toffee Installation/Configuration 6 13th March 2009 15:51
Improper use of CHROOT enviroment X secure file transfer between customer and admin. adrenalinic Installation/Configuration 1 21st December 2008 21:48
Howto add programes to chroot users? badgerbox76 Server Operation 7 8th April 2008 22:21
Postfix chroot ? knivla Server Operation 9 21st July 2007 06:35
ssh chroot works, but no scp for chroot users zokahn HOWTO-Related Questions 5 30th January 2006 09:33


All times are GMT +2. The time now is 14:19.


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