[SourceJammer-users] Re: SJ: users.xml question
Brought to you by:
robertmacgrogan
From: Robert M. <rob...@ya...> - 2002-02-11 14:54:18
|
Hi, Stan. These are great questions. I should release a doc about user management. See my answers below. --- Stan Wong <won...@ya...> wrote: > Rob, > > I was examining the users.xml file in the filesys > directory of > my Linux server. I am contemplating editing the > file to remove > users. The questions that I have: > > 1. I notice that UserId=1 is used twice. The admin > user has it > and the first user added has it also. Is this > intentional and > does it serve a purpose (or does it matter)? I was unaware of this. Luckily it does not seem to have caused any problems, probably because the real user ID is the user name. > > 2. If I delete the tags associated with a user, is > it okay to > have a gap in the UserId field numbering, or does it > have to > be consecutive? Gaps in the numbering should not cause any problems. > > 3. I am presuming that there is nothing currently > linked to > a specific UserId so it's okay if it changes (such > as if I have > to renumber IDs to be consecutive). I don't think changing user id numbers will cause any problems. See my answer to your next question. > > 4. Is the userCounter file associated with the > users.xml file > if I am deleting users? Do I have to change this? userCounter is a little serialized object that maintains a single long value. The object can be used to retrieve the next value in a sequence; in this case the user id number. Deleting users should not mess this up (though I must admit I've never tried it). I would suggest that you don't manually set up any users with id numbers higher than the highest id number present in your users.xml file. This probably would not cause any problems but still, I would avoid it. > > We are doing experiments to test the capability of > SourceJammer > and I have created test users that I want to get rid > of. I thought > that editing users.xml would be the easiest way. Is > there a > better way to do this? No, editing users.xml is your best way. In fact, it's your only way. A delete user function will definitely be a part of SJ 1.2. --Rob > > It would seem that a 'delete user' function for the > admin would > be handy. If my observations are correct then I was > just going > to write a quick script to do this for the time > being. > > Thanks. > > Stan Wong > won...@ya... > __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com |