Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th December 2011, 19:49
cbj4074 cbj4074 is offline
Senior Member
 
Join Date: Nov 2010
Posts: 392
Thanks: 29
Thanked 58 Times in 50 Posts
Default Unlocking website options that were set by an Administrator

Formulating a concise search query for this question proved difficult, so I apologize if this has been addressed before.

To quote one of Till's comments on the bugtracker:

Quote:
If you want to lock the options of a website so that the client cant change them, then create the website while you are logged in as admin user and not as client. All options that you select then are preserved and cant be changed by the client.
Is there any means by which to reverse this process?

In other words, if I create a website while logged in as an Administrator, and later decide that I want the client to be able to change all aspects of the site, is there any way to "pass control back to the client"?

Is this "administrator locking" behavior controlled only by the `web_domain`.`sys_userid` value in the database?
Reply With Quote
Sponsored Links
  #2  
Old 30th December 2011, 19:52
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,778
Thanks: 821
Thanked 5,334 Times in 4,184 Posts
Default

No, it does not depend on sys userid. See diferences in the perm columns.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 30th December 2011, 20:52
cbj4074 cbj4074 is offline
Senior Member
 
Join Date: Nov 2010
Posts: 392
Thanks: 29
Thanked 58 Times in 50 Posts
Default

Thanks for the reply, Till.

Would it be correct to state that the following will have the same effect as if the limited user (client) had created the website himself initially?

a.) Set the `sys_userid` to the client's user ID.

b.) Use the value "riud" in `sys_perm_user` and `sys_perm_group`.
Reply With Quote
  #4  
Old 30th December 2011, 22:16
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,778
Thanks: 821
Thanked 5,334 Times in 4,184 Posts
Default

A) no, not nescessary. This id does not matter for this task as it indicates just which user originally created the record.

B) yes.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 30th December 2011, 22:40
cbj4074 cbj4074 is offline
Senior Member
 
Join Date: Nov 2010
Posts: 392
Thanks: 29
Thanked 58 Times in 50 Posts
 
Default

Excellent, thank you.

So, if I were going to write a SQL query that "repairs permissions" (that is, sets all permissions as though the user had done everything under his own account), I could just iterate over the relevant DB tables and change those permission values?

Are there any "gotchas" of which to be aware should such a task be undertaken?
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
local ip:8080 just downloads a file called download or index.php dr_patso Installation/Configuration 5 20th September 2011 20:54
fail2ban bug resurfaced? KenMasters Installation/Configuration 4 10th June 2009 08:42
Strange "client" [ ::1] causing "Directory Index Forbidden by Options Directive" Err bpmee Server Operation 19 17th June 2008 16:01
Transaction error Perfect FC6 setup ACDII HOWTO-Related Questions 1 6th July 2007 14:56
Beyrl and Ubuntu 7.04 Toriacht Desktop Operation 17 23rd June 2007 21:40


All times are GMT +2. The time now is 12:22.


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