Questions tagged as ['permissions']
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 ...
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 ...
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.
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/ ...
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 ...
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.
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.
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
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 ...
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 ...
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 .. ...
I have a secondary storage drive on my computer mounted at
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 ...
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 ...
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 ...
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.
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 ...
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.
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)
How do I tell Linux to let me use this folder without getting
Error Opening directory '/media/sf_Share': Permission Denied ?
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.
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, ...
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 ...
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?
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 ...
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 ...
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 ...
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?
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 ...
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):
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: Cannot ...
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".
I decided to try Kali. I was eventually able to get Kali up and working, but same exact deal as Ubu ...
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 ...