Authentication information not available. Please refer to the installation documentation.

544 views
Skip to first unread message

auli...@gmail.com

unread,
Mar 16, 2014, 9:58:33 PM3/16/14
to trac-...@googlegroups.com
Ubuntu 12.04 LTS \n \l
Welcome to trac-admin 0.12.2

Model " Apache SVN TRAC"

/etc/apache2/sites-enable/trac:
<VirtualHost *:80>
    ServerName trac.firehare.name
    ServerAdmin ubuntu....@gmail.com
    DocumentRoot /var/www/myproject
    <Location />
        SetHandler mod_python
        PythonInterpreter main_interpreter
        PythonHandler trac.web.modpython_frontend
        PythonOption TracEnv /var/www/trac/
        PythonOption TracUriRoot /
        SetEnv PYTHON_EGG_CACHE /tmp
    </Location>
    <Location />
        AuthType Basic### Don't worry about it, I use the directive "tracd -p 8000 --basic-auth="/var/www/trac/,/var/www/trac/.htpasswd,trac" /var/www/trac/"  to start the trac
        AuthName "CMET_WZU Trac Server"
        AuthUserFile /var/www/trac/.htpasswd
        Require valid-user
    </Location>
 
    ErrorLog "/var/log/apache2/trac_errors.log"
    CustomLog "/var/log/apache2/trac_accesses.log" common   
</VirtualHost>


I use the directive " htpasswd -c /var/www/trac/.htpasswd admin " to create the userfile and enter the password for admin
but when I put in the directive " trac-admin /var/www/trac permission list", I can''t get the information for admin :
User           Action         
------------------------------
anonymous      BROWSER_VIEW   
anonymous      CHANGESET_VIEW 
anonymous      FILE_VIEW      
anonymous      LOG_VIEW       
anonymous      MILESTONE_VIEW 
anonymous      REPORT_SQL_VIEW
anonymous      REPORT_VIEW    
anonymous      ROADMAP_VIEW   
anonymous      SEARCH_VIEW    
anonymous      TICKET_VIEW    
anonymous      TIMELINE_VIEW  
anonymous      WIKI_VIEW      
authenticated  TICKET_CREATE  
authenticated  TICKET_MODIFY  
authenticated  WIKI_CREATE    
authenticated  WIKI_MODIFY    


Available actions:
 BROWSER_VIEW, CHANGESET_VIEW, CONFIG_VIEW, EMAIL_VIEW, FILE_VIEW,
 LOG_VIEW, MILESTONE_ADMIN, MILESTONE_CREATE, MILESTONE_DELETE,
 MILESTONE_MODIFY, MILESTONE_VIEW, PERMISSION_ADMIN, PERMISSION_GRANT,
 PERMISSION_REVOKE, REPORT_ADMIN, REPORT_CREATE, REPORT_DELETE,
 REPORT_MODIFY, REPORT_SQL_VIEW, REPORT_VIEW, ROADMAP_ADMIN, ROADMAP_VIEW,
 SEARCH_VIEW, TICKET_ADMIN, TICKET_APPEND, TICKET_CHGPROP, TICKET_CREATE,
 TICKET_EDIT_CC, TICKET_EDIT_COMMENT, TICKET_EDIT_DESCRIPTION,
 TICKET_MODIFY, TICKET_VIEW, TIMELINE_VIEW, TRAC_ADMIN,
 VERSIONCONTROL_ADMIN, WIKI_ADMIN, WIKI_CREATE, WIKI_DELETE, WIKI_MODIFY,
 WIKI_RENAME, WIKI_VIEW



Thank you very much for your time and help.
 

RjOllos

unread,
Mar 17, 2014, 4:34:15 AM3/17/14
to trac-...@googlegroups.com
Creating a user for htpassword does not affect the permissions table. You'll need to use the "permission add" command to grant permission for the "admin" user. The "admin" user will have all the permissions of the meta-users anonymous and authenticated.

Can you authenticated when running TracStandalone without the web server?

Please try the following:
tracd -p 8000 --basic-auth="trac,/var/www/trac/.htpasswd,trac" /var/www/trac

I think that "base_project_dir" needs to be the project name, not the project path. At least, the latter doesn't work for me when running TracStandalone. 

Another thing is that mod_python is deprecated and mod_wsgi should instead be used.

Steffen Hoffmann

unread,
Mar 17, 2014, 9:54:56 AM3/17/14
to trac-...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 17.03.2014 09:34, RjOllos wrote:
> Creating a user for htpassword does not affect the permissions table.
> You'll need to use the "permission add" command to grant permission for
> the "admin" user. The "admin" user will have all the permissions of the
> meta-users anonymous and authenticated.

For clarity: It does not work automatically by using a reserved user
name like 'admin', rather you'll get full permission assigned by
executing the trac admin CLI like so:
$> trac-admin <path-to-trac-env> permission add <username> TRAC_ADMIN

See wiki documentation for more details on Trac permissions [1] and on
the admin CLI [2] respectively.

Steffen Hoffmann


[1] http://trac.edgewall.org/wiki/TracPermissions
[2] http://trac.edgewall.org/wiki/TracAdmin?version=21

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlMm/q4ACgkQ31DJeiZFuHe6rwCgrVxCAkyVg0J6+JQhE2/fpv5W
6dAAoJUVrMfLGPqNQSWixYdQ/bpUmzg1
=qT1z
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages