Questions tagged [role]
396 questions
69
votes
4 answers
How does role=form help accessibility?
I have read that the role attribute was added to Bootstrap for accessibility, and I would like to know how

user664833
- 18,397
- 19
- 91
- 140
62
votes
6 answers
How to specify ansible pretasks for a role?
How should one go about defining a pretask for role dependencies.
I currently have an apache role that has a user variable so in my own role in /meta/main.yml I do something like:
---
dependencies:
- { role: apache, user: proxy }
The…

Kęstutis
- 1,011
- 2
- 12
- 22
61
votes
7 answers
createdb: database creation failed: ERROR: permission denied to create database
I am pretty much confused about root user,super user,user and permissions! I am not able to create a database inside user "athleticu". Following are the commands I used:-
athleticu@ip-172-30-4-103:/home/ubuntu$ createdb -T template0…

SonamGupta
- 1,727
- 2
- 10
- 14
55
votes
1 answer
Grant "create schema" ON database to a user?
I'm using PostgreSQL 9.1 and have to to grant "create schema" ON database to a user.
How can I do that?

matheusvmbruno
- 2,140
- 3
- 15
- 20
23
votes
6 answers
How to get current user role with spring security plugin?
I am using the spring-security-core plugin in my grails app. I need to know the current user's role in a controller action. How can I retrieve that?

laxmi
- 865
- 6
- 17
- 27
16
votes
2 answers
How are `ghc-pkg` and `cabal` programs related? (Haskell)
As I know cabal is a program to manage installation of packages like FreeBSD's pkg_add.
But there is another tool called ghc-pkg. I don't know why there are two different programs. What's the role of each of them and how are they related?

eonil
- 83,476
- 81
- 317
- 516
15
votes
1 answer
Asp.Net Role-based authentication using Security groups in Active Directory
I am attempting to do something simple (I thought) - securing my application using roles-based security using Active Directory groups in our Domain.
Specifically, I need to show/hide items on a page depending upon whether the currently logged in…

Kolten
- 3,495
- 5
- 42
- 59
13
votes
4 answers
Generating scripts for database role membership in SQL Server 2005
I have a database with a lot of users in it. Those users belong to different built-in roles in the DB (eg db_ddladmin).
I want to generate a script that creates those same users with the same role assignments to use in a different database. SQL…

rickythefox
- 6,601
- 6
- 40
- 62
13
votes
4 answers
how to check the user role inside form builder in Symfony2?
Okay, i'm trying to check if an user has a specific role, i did this
however, when i do this:
public function buildForm(FormBuilder $builder, array $options)
{
$builder
->add('nombre',null,array('label' => 'Usuario'))
…

Splendonia
- 1,329
- 3
- 37
- 59
12
votes
2 answers
View all securables for roles in SQL Server database?
How can we show all the securable that is added in any particular role in script?

sanjeev40084
- 9,227
- 18
- 67
- 99
11
votes
2 answers
Why new user in PostgreSQL can connect to all databases?
I installed PostgreSQL 9 database (migration from Oracle10g) and I am realy confused by user/role management. When I create new user using SQL command like CREATE USER or CREATE ROLE, or by Navicat tool, created user can see all databases! He realy…

veselej
- 353
- 2
- 4
- 12
11
votes
4 answers
Postgres: MD5 Password / Plain password
I'm trying to understand how role passwords are supposed to operate in Postgres.
https://www.postgresql.org/docs/current/static/sql-createrole.html says for ENCRYPTED / UNENCRYPTED
If the presented password string is already in MD5-encrypted…

RalphShnelvar
- 557
- 1
- 6
- 17
11
votes
3 answers
Invalid role attribute value for section element?
In a website I'm working on right now, I have a section element which type is set to "main". According to WAI-ARIA, the section element can use main as role attribute (role="main").
However, when I run my site through the W3C validator, I get a…

HCkev
- 123
- 1
- 1
- 7
11
votes
2 answers
unable to create user postgres: role "postgres" does not exists
i am on ubuntu 12.04 server and i am trying to install postgresql. As of now, i have successfully installed it but unable to configure it. I need to create a role to move ahead and i ran this command in terminal :
root@hostname: createuser -s -r…

Kaushik Thirthappa
- 1,041
- 2
- 9
- 21
9
votes
1 answer
Should Perl 6 be able to untangle the inclusion of the same role from different sources?
Imagine a series of complex grammars represented as roles, although this simple example is enough to show the conflict:
role Alpha {
token alpha { :i <[A..Z]> }
}
role Digit {
token digit { <[0..9]> }
}
role Either
does Alpha
…

brian d foy
- 129,424
- 31
- 207
- 592