Questions tagged [permission-denied]
20 questions
8
votes
1 answer
permissions of symlinks inside /tmp
I have 2 users in my machine: linuxlite and otheruser.
otheruser has a file:
otheruser@linuxlite:~$ ls -l a
-rw-rw-r-- 1 otheruser otheruser 6 Mar 31 12:47 a
otheruser@linuxlite:~$ cat a
hello
linuxlite made a file and a symlink in…
user49822
- 208
- 1
- 3
7
votes
1 answer
Permission denied when trying to 'mv' a directory
Situation:
I am using Bash with Linux subsystem for Windows(10); I am logged in as root.
All folders and files in my current directory have rwxrwxrwx, and the same is true for descendant files and folders.
There is no system file in my current…
bart5
- 73
- 1
- 1
- 5
5
votes
1 answer
Cannot cd to .ssh
After adding new ssh key to .ssh/authorized_hosts I can no longer ssh to the machine without entering password.
What is even more funny is that the .ssh directory is suddenly inaccessible when I'm logged in via ssh (no direct console…
andig
- 235
- 3
- 7
4
votes
1 answer
Mounting windows share with write permission for both root and user
On debian I have write permission for root but not for user. I have not done any changes in smb.conf yet so it is default. Read permission for user is present. How to add write permission for user?
gameboy@debian:~$ sudo mount.cifs //MOC/php…
trzczy
- 630
- 2
- 9
- 24
4
votes
2 answers
Permission denied when I tried to create a folder in root
Hi I tried to create a folder for ssh key in root with this command:
mkdir /root/.ssh && chown -R root:root /root && chmod -R 770 /root
and I have permission denied:
mkdir: cannot create directory ‘/root/.ssh’: Permission denied
Lau
- 41
- 1
- 1
- 2
4
votes
1 answer
Permission denied: writing a udev rule to to a test file in /etc/udev/rules.d/
An Ubuntu 16.04 udev rule is defined:
target='SUBSYSTEMS=="usb", ATTRS{product}=="Metrologic Scanner", GROUP:="username"'
Command to append a rule to test udev file fails:
sudo echo $target > /etc/udev/rules.d/test.txt
What must be done to…
gatorback
- 1,216
- 20
- 44
2
votes
1 answer
Why is the command rm called when the system starts up
My PC is Mac pro.
I removed x for rm in case of delete files by accident:
sudo chmod o-x /bin/rm
However, when I reboot my PC, I got one message on the terminal:
-bash: /bin/rm: Permission denied
If I do o+x for bin/rm, the message will…
Yves
- 3,161
- 7
- 26
- 54
2
votes
1 answer
cannot create regular file permission denied
I have a NAS whose ip is 192.168.1.7
There is a share on the NAS named music and in that share is a folder named 'archives'.
I want to copy a file from my local hard drive
/data/favourites/my-web-radio to the folder named archives.
To avoid…
aquagremlin
- 131
- 1
- 1
- 5
2
votes
1 answer
How to prohibit users from using pkexec?
I can control which users can run su or gksu by, for example, including the line auth required pam_wheel.so deny group=nosu in /etc/pam.d – then members of group nosu won’t be able to use su or gksu --su-mode.
However, this won’t stop anyone…
gaazkam
- 1,400
- 3
- 10
- 17
1
vote
2 answers
rm: cannot remove `/../...v': Permission denied
I want to delete directory 982899. It is located under directory big.
When I first try to delete 982899, it shows many lines of messages like this:
rm: cannot remove `982899/.../...v': Permission denied
So I use chmod 777 . to make directory big…
Yuan Wen
- 113
- 1
- 1
- 5
1
vote
0 answers
File permissions changed but group user can't write in them
I have done the follow:
chown'd it to a group
chmod 775
usermod
this is the status of the permission drwxrwxr-x 3 root www-data 4096 Mar 22 23:11 html
The groups my user is in ubuntu : ubuntu adm dialout cdrom floppy sudo audio dip www-data video…
A. L
- 111
- 2
1
vote
2 answers
vi tab completion not working
I'm trying to view the contents of files in /var/lib/php5/sessions, directory in which I have no permissions to do ls, so I have to use sudo ls to see all those files with long names, I would like to make tab completion work when I type sudo vi…
user202754
1
vote
2 answers
Permission denied on sysfs files
I'm messing around with my raspberry pi, and currently I'm trying to change the color of one of the LEDs on the board executing a shell script and its arguments:
pi@raspberrypi:~/morpheus/scripts $ bash ./set-rgb-led.sh level 50 50 50
When…
Jon Dier
- 43
- 1
- 2
- 6
1
vote
1 answer
permission denied /dev/bus/usb/
I'm confused by "permission denied" despite apparently having correct permissions to /dev/bus/usb/005/017.
This is similar to this question, but I have already tried restarting my ssh session.
$ sudo ls -la /dev/bus/usb/005/
total 0
drw-rw-rw- 2…
user84207
- 871
- 2
- 14
- 19
1
vote
1 answer
Linux blocks file access from Windows (shared NTFS drive)
I have 2 OSs on my laptop: Windows 7 on its own NTFS partition and Debian Jessie on its own ext4 partition. I also have a separate NTFS partition for my data which is shared between OSs. In Debian my data partition is mounted automatically after…
Alexandr Gnatyuk
- 73
- 1
- 3
- 7