Global settings to override individual user settings?

Need help? Post your questions here.

Moderator: moderators

Global settings to override individual user settings?

Postby mockingbrd » Fri Apr 01, 2011 1:29 am

Apologies if this has already been asked but I did try to search before posting.

I am rapidly approaching my ISP's bandwidth limit this month and want to temporarily disable everyone's ability to DL and also throttle their transcoding settings. The only way I know how to do that would be to go user-by-user and adjust their settings, which seems rather tedious. Is there any way to temporarily override settings for all users with some sort of global settings? Any info would be helpful, thanks!
mockingbrd
 
Posts: 49
Joined: Wed Feb 23, 2011 4:09 pm

Postby bushman4 » Fri Apr 01, 2011 12:50 pm

To remove their rights to download:

  • First, make a list of people that CAN download. You will need this if you ever want to restore their ability to download... to do so:
  • Run the following command to remove everyone's download rights (except the admin):
    Code: Select all
    Delete from USER_ROLE where ROLE_ID=2 and USERNAME<>'Admin'

To change everyone's max bit rate is a bit different...
  • First you need to find out what value you need to enter into the TRANSCODING_SCHEME field... to do so:
    • First choose an account to test with. Set that account to the bitrate that you want to limit everyone to. For sample purposes let's say that account's name is "Bob."
    • On the db.view screen, type the following command:
      Code: Select all
      Select TRANSCODE_SCHEME from USER_SETTINGS where USERNAME='Bob'
    • Make a note of the value displayed... for example, a 128 kbps limit has the value of "MAX_128"
  • Run the following command to limit everyone to that limit except the admin:
    Code: Select all
    Update USER_SETTINGS set TRANSCODING_SCHEME='ValueFromLastCommand' where USERNAME<>'Admin'


Hope this helps,
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Postby GJ51 » Fri Apr 01, 2011 2:19 pm

You can also set limits on the Settings Advanced page. This is also where the Downsample string is located.

I also use a slightly different approach for managing users. I have two accounts that I hand out for users outside of my family. The first is a "Guest" account that is set up just for browse and listen priveleges. The Second is a "Visitor" account that has download privileges enabled. This makes it much easier to manage multiple users IMO.

YMMV
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby mockingbrd » Fri May 13, 2011 7:54 pm

Hate to bump such an old topic, but I just realized I never thanked you all for your helpful replies!
mockingbrd
 
Posts: 49
Joined: Wed Feb 23, 2011 4:09 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 24 guests