Question
I can't add new users...
I have made the substitution of the TWikiRegistration.* files by the TWikiRegistrationPub.* files and everything else mentionned in the Enabling Authentication of Users section of the doc. When I try to register, it send me the notification email but I'm not added to the user list nor the .htpasswd file!
- TWiki version: 01Feb2003
- Perl version: 5.005_03 (for sun4-solaris)
- Web server & version: Apache 1.3.27
- Server OS: SunOS 5.8
- Web browser & version: Opera 7.01 & Netscape
- Client OS: SunOS 5.8 & WinXP
- RCS: RCSLite
- Testenv: testenv
By the way, testenv prints
Error: This directory is not writable by webmast user.
but that's wrong as webmast is a member of the group owning these directory and this group has full rights!
--
TWikiGuest - 18 Feb 2003
Answer
Nevertheless something is stopping webmast from writing to those directories. What is the result of
ls -la /users/nisole/twikinvisible/data ? (from a shell prompt)
--
MattWilkie - 18 Feb 2003
Thanks for the details and the testenv link. You might also like to look at
TWikiOnSolaris (not much there yet) and note that your
I18N
setup isn't working at present, due to TWiki not being able to set the locale correctly. This is often an indicator of a missing or broken locale - try setting the same locale from the command line and running a locale-aware application (e.g. vim or mutt). ISO-8859-15 can be challenging for some browsers, see
Google:telsa+iso+8859+15+netscape
.
I would investigate the permissions as well - testenv actually writes a test file to these directories. Check the parent directories as well, testenv must have at least
r-x permissions on
/users/nisole/twikinvisible, and
rwx on data etc.
Note that you are running Perl 5.8, see the Known Issues page for this release for a link - may not matter but could be an issue if using locales.
--
RichardDonkin - 19 Feb 2003
Matt:
The "wwwtwiki" group contains the "nisole" and "webmast" members. The "users" group contains "nisole" but not "webmast".
ls -la /users/nisole/twikinvisible/data
total 74
drwxrwxr-x 8 nisole wwwtwiki 512 Feb 11 15:21 ./
drwxr-xr-x 4 nisole users 512 Feb 11 12:40 ../
-rwxrwxr-x 1 nisole wwwtwiki 25 Feb 11 15:21 .htpasswd*
-rwxrwxr-x 1 nisole users 210 Feb 11 15:21 .htpasswd%*
drwxrwxr-x 2 nisole wwwtwiki 1024 Feb 6 17:04 _default/
-rwxrwxr-x 1 nisole wwwtwiki 0 Feb 2 02:13 debug.txt*
drwxrwxr-x 2 nisole wwwtwiki 2560 Feb 6 17:04 Know/
-rw-rw-r-- 1 webmast www 7018 Feb 19 00:19 log200302.txt
drwxrwxr-x 2 nisole wwwtwiki 2560 Feb 6 17:05 Main/
-rwxrwxr-x 1 nisole wwwtwiki 3419 Aug 13 2001 mime.types*
drwxrwxr-x 2 nisole wwwtwiki 1024 Feb 6 17:05 Sandbox/
drwxrwxr-x 2 nisole wwwtwiki 1024 Feb 6 17:05 Trash/
drwxrwxr-x 2 nisole wwwtwiki 13312 Feb 18 16:29 TWiki/
-rwxrwxr-x 1 nisole wwwtwiki 0 Feb 2 02:13 warning.txt*
Richard:
I've changed the locale to "C".
I've checked the permissions:
drwxrwxr-x 8 nisole wwwtwiki 512 Feb 11 15:21 data/
--
OlivierNisole - 19 Feb 2003
Change the owner of your TWiki web directories from
nisole to
webmast, or add
webmast to the
wwwtwiki group and you should be fine. Do the same to
.htpasswd,
debug.txt and
warning.txt.
--
PeterThoeny - 22 Feb 2003
The bad news are ...
- As I'm not a sys-admin I can't change
nisole to webmast
-
webmast is in the wwwtwiki group!
--
OlivierNisole - 03 Mar 2003 (sorry, I forgot my password)
If you do not have the permission ask a sys-admin to do it for you.
Visit
ChangePasswords.
--
PeterThoeny - 03 Mar 2003
Ok, I'll see what I can do with the sys-admin.
But, I don't understand why
webmast has to own the files to change them. Isn't it enough that it has got the
rwx rights as a member of the
wwwtwiki group?
--
OlivierNisole - 05 Mar 2003
Strange things happens sometimes........
Yesterday, I read another thread that suggested to use
chmo ugo+w on the
.htpasswd file.
So I did it, modifying
- -rwxrwxr-x 1 nisole wwwtwiki 25 Feb 11 15:21 .htpasswd*
in something like
- -rwxrwxrwx 1 nisole wwwtwiki ...
and then I could register new users.
This suggests that
webmast wasn't in the
wwwtwiki group. But a
cat /etc/group |grep wwwtwiki show me that
webmast is in this group!
Then I tried to
chmod 775 the
.htpasswd to revert it to the previous state:
- -rwxrwxr-x 1 nisole wwwtwiki ...
The strange thing is that I still can register new users! Don't ask me why, please!
--
OlivierNisole - 07 Mar 2003
Something strange going on here... I can only suggest reading up on Unix groups on Solaris, and asking in
TWikiOnSolaris perhaps - there is a concept of primary as well as secondary groups, so looking in /etc/group may not be enough. The
id command is the best way to check, as used by
testenv.
Perhaps something else was changed at the same time that caused this to work? In any case,
testenv is happy in that its test-write to a new file in data directory works. There are still a couple of warnings about
RCS and GNU diff, see
TWikiOnSolaris for links that may help.
--
RichardDonkin - 08 Mar 2003