Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd August 2011, 21:02
mentes mentes is offline
Senior Member
 
Join Date: Aug 2011
Location: Spain
Posts: 132
Thanks: 4
Thanked 14 Times in 13 Posts
Default Cosmetic change on: linux user & linux group

By default ISPConfig creates linux users as webX and groups as clientX

Can I modify it without break something ?

I found these lines in /usr/local/ispconfig/interface/web/sites/web_domain_edit.php

PHP Code:
$system_user $app->db->quote('web'.$this->id);
$system_group $app->db->quote('client'.$client_id); 
I think in use domain name for user, and client name for group, like:

user: example_com
group: company
Reply With Quote
Sponsored Links
  #2  
Old 2nd August 2011, 22:13
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,421
Thanks: 812
Thanked 5,205 Times in 4,081 Posts
Default

Changing this is a bad idea as it will break your setup when the domain name changes. Also domain names can be too long and the client name may contain characters that are not allowed in user or group names.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
mentes (3rd August 2011)
  #3  
Old 14th November 2011, 18:06
ColdDoT ColdDoT is offline
Senior Member
 
Join Date: Jan 2006
Location: Netherland
Posts: 178
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ColdDoT
Default

Hello,

Well i'm currently also looking into this. Why?

I really want to start switching my main external access to scp. And to let the users log in with web1, web2 etc is a bit stupid.

Its not possible to give shell access (thought the mod) because of user permissions etc. So what would be a good setup or solution?

I can write mods or so. But before i approach this problem with a big fat hammer would love to see opinion from the makers.

~ColdDoT
__________________
2B or not 2B (a pro)
Reply With Quote
  #4  
Old 14th November 2011, 18:37
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,421
Thanks: 812
Thanked 5,205 Times in 4,081 Posts
Default

There is a misunderstanding on what the webx users are. The webx users are just system users which have aliases if you want to login with ssh or scp clients. So the "web" user names dont matter at all they are technical users and only used internally by ispconfig. They are the same users then the shell users of the the website where they belong to.

To login with scp, just create a shell user, every shell user is alias of the web user as they share the same uid. You should take a deeper look in how the shell login system works. and which uid's they use. If you want secure shell users, then enable jailkit for that user.

As a sidenote, using the web user for scp or a shell user created in ispconfig is exactly the same security wise, as every shell user is alias of the web user.

If you just want to use secure file transfers, I would go with ftps (FTP over TLS) and not scp.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.

Last edited by till; 14th November 2011 at 18:40.
Reply With Quote
  #5  
Old 14th November 2011, 19:57
ColdDoT ColdDoT is offline
Senior Member
 
Join Date: Jan 2006
Location: Netherland
Posts: 178
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ColdDoT
 
Default

I see.

Thank you!
__________________
2B or not 2B (a pro)
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
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
User en Group changed on all websites after adding site/domain Jorem General 2 6th October 2010 23:14
Apache with mod_perl: user and group? angela Installation/Configuration 3 30th August 2010 11:23
Email problem 'Cannot set my user or group id.' (using ISPConfig 3 + OpenSuSE 11.2) urosm Installation/Configuration 5 19th June 2010 22:41
ubuntu ispconfig joomla .htaccess steve1084 General 8 6th January 2007 15:55


All times are GMT +2. The time now is 01:58.


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