Questions tagged [permissions]
Permissions define the operations that authenticated users are allowed to perform on file systems, databases and other computer systems.
17,823
questions
3209
votes
36
answers
2.8m
views
ssh "permissions are too open"
I get the following error from ssh:
Permissions 0777 for '/Users/username/.ssh/id_rsa' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will ...
2177
votes
19
answers
5.2m
views
How do I change permissions for a folder and its subfolders/files? [closed]
How do I change the permissions of a folder and all its subfolders and files?
This only applies to the /opt/lampp/htdocs folder, not its contents:
chmod 775 /opt/lampp/htdocs
How do I set chmod 755 ...
1511
votes
40
answers
703k
views
How to fix npm throwing error without sudo
I just installed node and npm through the package on nodejs.org, and whenever I try to search or install something with npm, it throws the following error unless I sudo the command. I have a feeling ...
1131
votes
15
answers
346k
views
How do I use sudo to redirect output to a location I don't have permission to write to? [closed]
I've been given sudo access on one of our development RedHat linux boxes, and I seem to find myself quite often needing to redirect output to a location I don't normally have write access to.
The ...
998
votes
43
answers
731k
views
"UNPROTECTED PRIVATE KEY FILE!" Error using SSH into Amazon EC2 Instance (AWS) [closed]
I've created a new linux instance on Amazon EC2, and as part of that downloaded the .pem file to allow me to SSH in.
When I tried to ssh with:
ssh -i myfile.pem <public dns>
I got:
@@@@@@@@@@@@@...
738
votes
15
answers
311k
views
sudo echo "something" >> /etc/privilegedFile doesn't work [duplicate]
This is a pretty simple question, at least it seems like it should be, about sudo permissions in Linux.
There are a lot of times when I just want to append something to /etc/hosts or a similar file ...
733
votes
7
answers
3.6m
views
Chmod 777 to a folder and all contents [duplicate]
I have a web directory /www and a folder in that directory called store.
Within store are several files and folders. I want to give the folder store and all files and folders within the store folder ...
673
votes
25
answers
802k
views
SSH Key: “Permissions 0644 for 'id_rsa.pub' are too open.” on mac
I generate a ssh key pair on my mac and add the public key to my ubuntu server(in fact, it is a virtual machine on my mac),but when I try to login the ubuntu server,it says:
@@@@@@@@@@@@@@@@@@@@@@@@@@...
668
votes
7
answers
425k
views
How to create file execute mode permissions in Git on Windows?
I use Git in Windows, and want to push the executable shell script into git repo by one commit.
Usually I need to do two steps (git commit).
$ vi install.sh
$ git add install.sh
$ git commit -am &...
644
votes
24
answers
565k
views
How to reset Django admin password?
I am using Django (version 1.3) and have forgotten both admin username and password. How to reset both?
And is it possible to make a normal user into admin, and then remove admin status?
487
votes
37
answers
799k
views
MySQL error 1449: The user specified as a definer does not exist
When I run the following query I get an error:
SELECT
`a`.`sl_id` AS `sl_id`,
`a`.`quote_id` AS `quote_id`,
`a`.`sl_date` AS `sl_date`,
`...
435
votes
4
answers
341k
views
IIS AppPoolIdentity and file system write access permissions
Here's an issue with IIS 7.5 and ASP.NET that I've been researching and getting nowhere with. Any help would be greatly appreciated.
My question is: using ASP.NET in IIS 7.5, how does IIS and/or the ...
429
votes
8
answers
492k
views
IIS7 Permissions Overview - ApplicationPoolIdentity
We have recently upgraded to IIS7 as a core web server and I need an overview in terms of the permissions. Previously, when needing to write to the file system I would have give the AppPool user (...
331
votes
5
answers
324k
views
ERROR: permission denied for sequence cities_id_seq using Postgres
I ran following sql script on my database:
create table cities (
id serial primary key,
name text not null
);
create table reports (
id serial primary key,
cityid integer not null references cities(...
312
votes
25
answers
211k
views
Android M Permissions: onRequestPermissionsResult() not being called
I'm updating our app to use the new M runtime permissions system.
It's all working except for onRequestPermissionsResult(). I need to check a permission on a button press, and if it's successful, send ...
296
votes
17
answers
128k
views
On npm install: Unhandled rejection Error: EACCES: permission denied
I have managed to corrupt my npm install, and whenever I try to install packages using npm install, I receive error messages along these lines:
Unhandled rejection Error: EACCES: permission denied, ...
290
votes
11
answers
291k
views
Add Keypair to existing EC2 instance
I was given AWS Console access to an account with 2 instances running that I cannot shut down (in production). I would, however, like to gain SSH access to these instances, is it possible to create a ...
287
votes
35
answers
932k
views
WAMP error: Forbidden You don't have permission to access /phpmyadmin/ on this server
I am new to WAMP and I have just installed it today.
The setup went well and localhost seems to work, but when I try to access phpMyAdmin I get this error:
Forbidden
You don't have permission to ...
275
votes
19
answers
1.2m
views
SQL Server query to find all permissions/access for all users in a database
I would like to write a query on a sql 2008 that will report all the users that have access to a specific database, or objects within the database such as tables, views, and stored procedures, either ...
263
votes
15
answers
172k
views
Can the Unix list command 'ls' output numerical chmod permissions?
Is it possible when listing a directory to view numerical Unix permissions such as 644, rather than the symbolic output -rw-rw-r-- ?
Thanks.
226
votes
5
answers
223k
views
PostgreSQL: role is not permitted to log in
I have trouble connecting to my own postgres db on a local server.
I googled some similar problems and came up with this manual
https://help.ubuntu.com/stable/serverguide/postgresql.html
so:
pg_hba....
225
votes
19
answers
249k
views
C# Test if user has write access to a folder
I need to test if a user can write to a folder before actually attempting to do so.
I've implemented the following method (in C# 2.0) that attempts to retrieve the security permissions for the ...
223
votes
13
answers
122k
views
Android M Permissions : Confused on the usage of shouldShowRequestPermissionRationale() function
I was going through the official doc about the new Permissions model in Android M. It talks about the shouldShowRequestPermissionRationale() function which returns true if the app has requested this ...
210
votes
4
answers
145k
views
Resources, scopes, permissions and policies in Keycloak
I want to create a fairly simple role-based access control system using Keycloak's authorization system. The system Keycloak is replacing allows us to create a "user", who is a member of one ...
205
votes
8
answers
366k
views
cd into directory without having permission
When cding into one of my directories called openfire the following error is returned:
bash: cd: openfire: Permission denied
Is there any way around this?
196
votes
23
answers
230k
views
Android 6.0 multiple permissions
I know that Android 6.0 has new permissions and I know I can call them with something like this
if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) !=
...
191
votes
9
answers
323k
views
How do I use su to execute the rest of the bash script as that user?
I've written a script that takes, as an argument, a string that is a concatenation of a username and a project. The script is supposed to switch (su) to the username, cd to a specific directory based ...
190
votes
13
answers
156k
views
warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
Every time I run this command rails server:
warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
I searched for a solution here and they said to type: chmod go-w /usr/local/...
188
votes
3
answers
378k
views
GRANT EXECUTE to all stored procedures
Does the following command effectively give the user, "MyUser," permission to execute ALL stored procedures in the database?
GRANT EXECUTE TO [MyDomain\MyUser]
186
votes
12
answers
355k
views
Storage permission error in Marshmallow
In Lollipop, the download functionality works fine in my app, but when I upgraded to Marshmallow, my app crashes and gives this error when I try to download from the internet into the SD card:
...
186
votes
49
answers
671k
views
npm install errors with Error: ENOENT, chmod
I am trying to globally install an npm module I just published. Every time I try to install, either from npm or the folder, I get this error.
npm ERR! Error: ENOENT, chmod '/usr/local/lib/...
181
votes
6
answers
551k
views
IIS_IUSRS and IUSR permissions in IIS8
I've just moved away from IIS6 on Win2003 to IIS8 on Win2012 for hosting ASP.NET applications.
Within one particular folder in my application I need to Create & Delete files. After copying the ...
165
votes
7
answers
24k
views
Why do enum permissions often have 0, 1, 2, 4 values?
Why are people always using enum values like 0, 1, 2, 4, 8 and not 0, 1, 2, 3, 4?
Has this something to do with bit operations, etc.?
I would really appreciate a small sample snippet on how this is ...
163
votes
12
answers
251k
views
SQLite error 'attempt to write a readonly database' during insert?
I have a SQLite database that I am using for a website. The problem is that when I try to INSERT INTO it, I get a PDOException
SQLSTATE[HY000]: General error: 8 attempt to write a readonly database
...
161
votes
9
answers
349k
views
pip install failing with: OSError: [Errno 13] Permission denied on directory
pip install -r requirements.txt fails with the exception below OSError: [Errno 13] Permission denied: '/usr/local/lib/.... What's wrong and how do I fix this? (I am trying to setup Django)
Installing ...
160
votes
6
answers
98k
views
Detect permission of camera in iOS
I am developing a very simple video app. I use the official control: UIImagePickerController.
Here is the problem. When presenting the UIImagePickerController for the first time, the iOS will ask for ...
150
votes
8
answers
264k
views
mysql - How to grant read only permissions to a user?
I have a mysql user, whom I want to grant all the READ permission on a db schema.
One way is this :
GRANT SELECT, SHOW_VIEW ON test.* TO 'readuser'@'%';
Is there a way to group all read operations ...
149
votes
2
answers
63k
views
Where are sudo incidents reported? [closed]
Attempting something devious on my machine leads to
ryan@debian:~$ sudo EAT_ALL_THE_COOKIES_BEFORE_DINNER
[sudo] password for ryan:
ryan is not in the sudoers file. This incident will be reported.
...
149
votes
4
answers
61k
views
Missing support for Firebase App Indexing (android lint)
I receive this lint warning when analysing my code (Analyse > Inspect Codes) on Android studios.
App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW ...
148
votes
7
answers
257k
views
Python module os.chmod(file, 664) does not change the permission to rw-rw-r-- but -w--wx----
Recently I am using Python module os, when I tried to change the permission of a file, I did not get the expected result. For example, I intended to change the permission to rw-rw-r--,
os.chmod("/tmp/...
142
votes
11
answers
111k
views
can't chown /usr/local for homebrew in Mac OS X 10.13 High Sierra
Homebrew needs permissions in /usr/local and since no one else uses my laptop I have always simply done
sudo chown -R $(whoami) $(brew --prefix)
but in High Sierra, this gives
chown: /usr/local: ...
134
votes
12
answers
102k
views
Determining Whether a Directory is Writeable
What would be the best way in Python to determine whether a directory is writeable for the user executing the script? Since this will likely involve using the os module I should mention I'm running it ...
134
votes
22
answers
244k
views
Warnings Your Apk Is Using Permissions That Require A Privacy Policy: (android.permission.READ_PHONE_STATE)
In manifest not added android.permission.READ_PHONE_STATE. permission.
Why error comes when I upload a new apk version error comes below.
Your app has an apk with version code 1 that requests the ...
131
votes
4
answers
291k
views
www-data permissions?
So I have a directory in /var/www (called cake) and I need to allow www-data to write to it, but I also want to write to it (without having to use sudo). I'm afraid to change the permissions to 777 in ...
120
votes
7
answers
109k
views
Linux, Why can't I write even though I have group permissions?
I want to create a file in a directory owned by the staff group which I am a member of. Why can I not do this?
bmccann@bmccann-htpc:~$ ls -l /usr/local/lib/R/
total 4
drwxrwsr-x 2 root staff 4096 ...
119
votes
16
answers
189k
views
There is no existing directory at /storage/logs and its not buildable: Permission denied
I have a problem with my Laravel deployment on a OVH web server.
After made
composer update
php artisan cache:clear
php artisan route:clear
php artisan dump-autoload
I have this answer:
There ...
117
votes
20
answers
976k
views
PermissionError: [Errno 13] Permission denied
I'm getting this error :
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python34\lib\tkinter\__init__.py", line 1538, in __call__
return self.func(*args)
File &...
117
votes
8
answers
148k
views
Correct owner/group/permissions for Apache 2 site files/folders under Mac OS X?
It's hard to find Mac-specific answers to this question on the web, so I'm hoping someone out there can put this one to rest for me? My permissions are screwed up on my sites and I'm not sure how to ...
115
votes
24
answers
172k
views
ActivityCompat.requestPermissions not showing dialog box
if (ContextCompat.checkSelfPermission(RegisterActivity.this, Manifest.permission.READ_PHONE_STATE) == PackageManager.PERMISSION_DENIED){
ActivityCompat.requestPermissions(this,
...
114
votes
24
answers
268k
views
git push: permission denied (public key)
I'm trying to push a file to a git repo of a friend but errors on public key.
git push origin testbranch
Permission denied (publickey).
fatal: Could not read from remote repository.
Where and how do ...