Questions tagged as ['permissions']

Short for "file system permissions" - access control based on user, group, or global access.
Score: 0
user487583 avatar
Adding a User from the Command Line: is not in the sudoers file. This incident will be reported
bs flag

I usually work as root، no problem. But some recommend that to work as user (For security reasons). But they do not mention what problems you will face in this case.

These are the things I did.

I tried to create a username with adduser.

adduser USERNAME
su USERNAME
sudo true

And then I got this message:

sudo: unable to resolve host localhost: Name or service not known
[sudo] password for USERNAME:
USE ...
Score: 0
A_K avatar
Apache/2.4.46 (Ubuntu) Server at Port 80 Error
ug flag
A_K

I have uploaded 2 django projects before and worked perfectly fine to the server, but now for some reason I am receiving this error. I have revisited a tutorial word by word and revised it several times, I am not sure why I keep receving this error:

You don't have permission to access this resource.Server unable to read htaccess file, denying access to be safe

Error for 403 Forbidden You don't hav ...
Score: 0
Kit Cheng avatar
After I set file permission to 0600 on /etc/passwd, my linux vm failed to boot
in flag

I'm definitely new to Linux. Build a Linux Ubuntu vm in Azure for syslog purposes. Microsoft security configuration recommend /etc/passwd- file permissions should be set to 0600. As soon as I did that, the vm will not be able to boot successfully. It fails to start the networking services. Is this normal? Any help is greatly appreciated.

Thanks Kit

Score: 4
Teg Veece avatar
Can't write to a hidden path using Curl
ru flag

I did a fresh install of Ubuntu 20.04 today. I got as far as setting up my vim environment which installs plug.vim using curl when I hit a speed bump.

Error creating directory /home/simon/.vim/autoload.
curl: (23) Failed writing received data to disk/application

The relevant lines in the .vimrc are:

" Auto-install plugin manager if it doesnt exist (and PlugInstall)
if empty(glob('~/.vim/autoload/ ...
Score: 0
DBG avatar
Directory's padlock
kr flag
DBG

Am trying to develop a game using libGDX.

Have downloaded the JAR file and have trouble when opening the project that's been generated by libGDX.

When being inside the Desktop directory in the GUI version, a padlock does appear on the icon as see in the pic.

As far as it seems, all has to do with

Have tried changing the file's permissions using:

sudo chmod +xrw file's name

In the link below hav ...

Score: 0
Abayomi Usman avatar
How can i regain access to change permissions on my files on ubuntu
in flag
 chmod -rwx balfyp
chmod: changing permissions of 'balfyp': Operation not permitted

i changed the mount options on my wsl to fmask=111 suddenly i have zero access to my entire files on my /mnt/c please help me i just want to change my file access to only me to have rwx access to it please.

Score: 0
AFG VM avatar
Edit "PermitRootLogin yes",
in flag

I am trying to edit "PermitRootLogin yes" to "PermitRootLogin no" on a VM ESXi host. When I try to edit it using VI at /etc/ssh/sshd_config, it is in Read Only mode. I tried the override wq! and it is not saving. I get SSHD is "Read Only". How can I edit this file? I am logged in as root.

Score: -1
Craig Underhill avatar
Have to take ownership of USB port after each reboot
tn flag

I have a laser engraver. I was having issues getting Ubuntu to talk to it via USB. I finally sorted that out, but now when I reboot, I have to run the command below every time, or I can't talk to the engraver. What am I missing so it will stay permanently? Thanks.

sudo chown [username] ttyUSB0
Score: 0
roog avatar
How can access to certain settings be restricted for my customers?
in flag

I am delivering a Linux virtual machine file as an "appliance" to my customers. The appliance runs some scripts and provides our services to them. I preconfigure this appliance image for each customer before sending it to them. The customer is never given the root or admin password at all.

I wish to allow customers the ability to change the appliances hostname and IP address but nothing else, or as ...

Score: 0
Xutulu avatar
How to make mounting a certain device read-only?
ng flag

When I connect my camera to my Xubuntu 18.04 computer, it's mounted with write permissions, which isn't exactly desirable. How can I make it so that it, and any other camera, will be mounted read-only?

This is what mtab shows for it: /dev/sdd1 /media/me/king64 exfat rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,iocharset=utf8,namecase=0,errors=remount-ro 0 0

But sdd1 could be a ...

Score: 0
Garrett avatar
Cannot write to Linux HDD: read-only file system
de flag

I noticed that I don't have any write access to my entire HDD when my backups started failing.

I understand that I need to change read-only privalges so my user can write to the Disk. However, no matter what I try nothing changes the privalges.

garrett@garrett-desktop:/media/garrett$ ls -la
total 12
drwxr-x---+ 3 root    root    4096 Aug  1 20:17  .
drwxr-xr-x  3 root    root    4096 Apr  6 09:13  ..
 ...
Score: 0
theastronomist avatar
Cannot Write to Secondary Hard Drive
ru flag

I have a secondary storage drive on my computer mounted at /media/user_name/Data. I get this error when trying to create a new directory:

user_name@cpu:/media/user_name/Data mkdir test

mkdir: cannot create directory ‘test’: Read-only file system

df -h shows it mount at:

...
/dev/sdc2       466G   77G  390G  17% /media/user_name/Data

I follow instructions from here to remount it as read/write ...

Score: 0
John Williams avatar
How to get rid of "read-only" filesystem?
us flag

To save some disk space, I recently deleted all the epiphany software that had been installed in my /snap directory. However, I still had numerous epiphany files, which were marked "read only". I'm using Ubuntu 20.04.2 LTS.

For example, the installed files include ones named "actions", "apps", "LC_MESSAGES", etc., and contain files named "epiphany-browser.svg", "epiphany-bookmarks.svg", etc.

I ha ...

Score: 0
OMI avatar
Samba file system
sa flag
OMI

I'm having trouble with the Samba file system. I started transferring around 7TB of data to another server through network sharing and I keep getting files cant be transferred permissions denied and I don't know what to do because I have to back up computers on our system.

Score: 0
Mount nfs at startup as specific user, and allow unmount?
fr flag

I am using:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.2 LTS
Release:    20.04
Codename:   focal

$ mate-about --version
MATE Desktop Environment 1.24.0

... as an NFS client.

I have an nfs4 share on the server; my entry in /etc/fstab on the client is like this:

172.16.0.5:/mydata /media/user/mydata_nfs nfs4 nosuid,nodev,nofail,x-gvfs-show,rw ...
Score: 0
Bazi avatar
bash: permission denied, Owncloud helper script
nz flag

I don't know to much about linux and server creating but I wanna create my private owncloud web drive, I have linux Ubuntu 20.04 server on my Raspberry pi4 installed. I have started using this tutorial to set it up but I'm having issues at the beginning. When I'm trying to create Helper Script(?):

Create the occ Helper Script

Create a helper script to simplify running occ commands.

FILE="/usr/local/bin/o ...
Score: 2
Permission denied to a file in ~/.cache directory
de flag

When I set an output file in the home directory, the following curl command works. But when I use ~/.cache/mydir, it returns "Permission error".

$ ls -al ~/.cache/tera
drwxrwxr-x  2 shinichi shinichi 4096 Jul 28 09:04 .
drwx------ 16 shinichi shinichi 4096 Jul 27 20:52 ..
-rw-rw-r--  1 shinichi shinichi    0 Jul 28 09:04 radio_searches.json


$ curl -X POST -d tag=smooth http://all.api.radio-browser.in ...
Score: 0
How can I copy files from .ssh directory using "try ubuntu from usb"?
in flag

My disk is breaking up and won't boot. I managed to get it mounted while using Ubuntu from a usb. I want to copy my private keys from .ssh and do a clean install. But, when I try to cd to .ssh in my home directory I get "Permission denied". Is there a way to access the .ssh directory? My home directory is not encrypted.

Score: 0
Eric Huelin avatar
How do I write to solve the shared folder permission denied Lubuntu 20.04 to Windows 10
es flag

I find many solutions but I don't know enough Linux to understand what to write specifically for my own machine. That is why I wrote the question so specifically because I don't know how to write in Linux.

My shared folder is in (icon that looks like an ipod) /media/sf_Share

How do I tell Linux to let me use this folder without getting Error Opening directory '/media/sf_Share': Permission Denied ?

 ...
Score: 0
geekygeek avatar
What are default permissions or configuration? Revert chmod 777
us flag

I am new to Ubuntu and Linux, and appear to have made a mistake. I was currently logged in as root and was encountering a permission issue in my python file where I could not create a file when using the following.

open('test.txt', 'w')

To resolve this, I ran the following.

sudo chmod -R 777 ~/MyDir

Everything became highlighted in light green, indicating that it is executable. Upon further reading, ...

Score: 0
Maysam avatar
Minidlna fails to read external directory
th flag

I have an exfat formatted drive attached to my raspberry pi and I want to add a folder from that disk to minidlna but I cannot. It works fine with the internal shared folder.

This is service status output:

systemctl status minidlna

* minidlna.service - MiniDLNA lightweight DLNA/UPnP-AV server
   Loaded: loaded (/lib/systemd/system/minidlna.service; enabled; vendor preset: enabled)
   Active: failed (Resu ...
Score: 0
Permission denied with 0660 when using cd
us flag

I have a directory:

drw-rw---- 2 myuser somegroup 4096 Jul 26 20:04 share

Which I also made myself (myuser) the owner of. However if I try to move into this directory with cd I get:

-bash: cd: share: Permission denied

I'm not a linux guru but shouldn't I have access with these permissions? What am I doing wrong?

Score: 1
Brain Bytes avatar
Docker-compose mounted file system operation not permitted for volume
ro flag

I am experiencing a problem with docker-compose, its mounting a volume in a folder on a mounted hard drive. I have seen lots of solutions out there and honestly tried them all.

I changed the permissions to the user that I am using, to root, to docker, within their respective groups. Nothing

Writing operations work fine, I can write a file through python I am not restricted, but when I run docker com ...

Score: 0
CameFromSpace avatar
Permanent access to a usergroup for a usb drive
us flag

I have a USB flash drive which gets mounted to /media/pi/76E8-CACF (pi is my main user).

pi@raspberrypi:~ $ ls -ld /media/pi/76E8-CACF
drwxr-xr-x 3 pi pi 131072 Jul 23 23:54 /media/pi/76E8-CACF

I have created 2 new UNIX users and added them in a usergroup (including pi).

pi@raspberrypi:~ $ grep sambagroup /etc/group
sambagroup:x:1003:Space_Legion,pi,Space_Android

I want to permanently give rw permis ...

Score: 0
Mr. Berzerk avatar
ISO, BIN, CUE files being blocked by Windows 10 from one Ubuntu Server Samba Share, but not another
in flag

I'm running Ubuntu server 20.04 on both machines. Same version of Samba Same Samba settings as far as I can tell. For some reason one day Windows 10 started blocking access to all ISO, BIN, and CUE files for 1 share on one machine, but not for another share on another machine.

I'm at a loss as to why this is, and how to fix it.

When I try to open a blocked file I get

You might not have permission to ...

Score: 0
Avin Mathew avatar
restore __pycache__ folder from trash ubuntu 18.04
my flag

I accidentally removed pycache folder in my computer running ubuntu 18.04 lts and when I try to restore it gives me the error message

Item in the trash may not be modified

How to fix this?

Score: 0
v1z3 avatar
`chown postgres` of a subdirectory not working for a new disk
us flag

To give postgres more space, I mounted a ssd at: /mnt/fast_data/

What I'd like to accomplish is to give the postgres user ownership to the postgresql directory, so it doesn't say permission denied.

$ sudo chown -R root:root /mnt/fast_data/
$ sudo chown -R postgres:postgres /mnt/fast_data/postgresql/

When I test with:

su postgres

postgres@my_machine:  cd /mnt/fast_data/postgresql

I get the error=>&g ...

Score: 0
ntpd says it can't open /var/log/ntpd.log even though the file is owned by ntp:ntp, what gives?
ph flag

I have three Ubuntu servers, one of which is able to save its log in the /var/log/ntp.log file, the other two are not.

The configuration looks like this in all of them (clearly uncommented):

logfile /var/log/ntp.log

Here is how the file looks:

$ ls -l /var/log/ntp.log
-rw-r--r-- 1 ntp ntp 0 Jul 21 13:13 /var/log/ntp.log

Yet, I get this error on two machines:

Jul 21 13:19:01 ubuntu ntpd[18128]: Cannot  ...
Score: 1
Harrison avatar
When will Ubuntu natively support Intel Wi-fi 6 AX201?
de flag

I was having issues with Ubuntu 20.04 LTS. I could not connect to the internet. The only way I was able was through connecting my phone to my laptop so that my laptop could share off the wifi. When I looked at the wifi menu in settings, the menu would say something like, "Adapter not found".

SOOOO....

I decided to try Kali. I was eventually able to get Kali up and working, but same exact deal as Ubu ...

Score: 0
Dulat A avatar
How to change idea.max.intellisense.filesize if Toolbox is used?
in flag

I am using Intellij Idea toolbox for managing a couple Idea versions on Ubuntu 20. Because I work with large files, Idea is not able to completely load them, hence, some of the code is marked as red while it is being built just fine. I tried to change the idea.max.intellisense.filesize property in: /snap/intellij-idea-ultimate/309/bin/idea.properties However, it says that the file-system is read-only, s ...