Questions tagged [permissions]
Short for "file system permissions" - access control based on user, group, or global access.
7,599
questions
0
votes
0
answers
130
views
sudoers.d file not working for a non-sudo user using three commands without password
I want username steamy, a non-sudo user, to execute three commands (i.e., systemctl start|stop|restart factorio) without entering a password.
I am using sudoers.d file called factorio:
$ sudo ls -l /...
0
votes
0
answers
29
views
How do I give other users permission to access ntfs partition?
Only adm users have access to the ntfs partition, how do I change this?
Edited: My ubuntu is 22.04
Thank you
0
votes
0
answers
60
views
Why can I only change write permissions for all users?
I've been trying to manage the permissions on a certain file, but the only changes the chmod command seems to allow me are changes to all users and regarding the write command. I can't change any ...
0
votes
0
answers
44
views
Transfering nextcloud data of docker volume to another server while usergroup does not exists
I'm currently preparing a migration from my Raspberry Pi with Ubuntu 22.04.03 LTS 64x
to an x86 based server.
In that process, I want to copy all of my Nextcloud data. While investigating the file ...
2
votes
2
answers
2k
views
How to allow a user to start/stop a specific system service?
I am building a server on which my students will be able to upload their projects, which are Python+Flask web-applications. When I add a new user, I add a new service in /etc/systemd/system/[username]....
0
votes
1
answer
672
views
Chromium and Chromedriver do not work correctly, permission denied
I'm trying to automate some features with php-chrome library.
I need to use chromium.chromedriver installed on my server.
So I installed these apps.
root@afs2:~#: google-chrome --version
Google Chrome ...
0
votes
0
answers
228
views
Supervisord ignores user setting
I want to use supervisord to make maintenance for Laravel application which used nginx run by www-data:www-data user:group. Both Laravel app and supervisord task need to share one log file. Sometimes ...
0
votes
0
answers
221
views
How to give a permenant permission for a disk?
I have hdd that has been mounted to a new folder Backup that I created in /media
/dev/sda1 15T 28K 14T 1% /media/Backup
But I am not able to create any folder and the permission is as ...
0
votes
0
answers
43
views
User not able to modify the file which is created by a different user. User is also part of that user's group [duplicate]
I have created two normal users on my Ubuntu system:
testuser1
testuser2
I have added testuser2 to the testuser1 group
testuser1 created a file in the /tmp folder named file1, testuser2 is able to ...
2
votes
0
answers
274
views
new kernel and exfatprogs do not support same mount options as exfat-utils
On multiple machines at work and at home, I multiboot between one or two flavors of Linux and a few flavors of Windows. In order to keep my data centralized regardless of what OS I'm in, I use an ...
0
votes
1
answer
87
views
cannot write a remotely mounted file
Before opening my nextcloud server to the internet i'm trying to harden its security by configuring its sshd_config file.
Its a ubuntu core server so i can edit files only through sshfs.
The thing is, ...
0
votes
0
answers
35
views
my user pssword has been chnged
I use a stand alone desktop running ubuntu 22.04. The admin password has been changed (hacked). How do I regain control as my password is no longer accepted, and I can not use sudo, or choose a new ...
1
vote
1
answer
128
views
How to make the current working directory be highlighted in color? [duplicate]
my ns-3 is installed inside the source folder i.e., home/my_username/source/ns-3.39, when I try to ls inside the ns-3.39 directory, it gives:
ls: cannot open directory '.': Permission denied
So I have ...
0
votes
0
answers
45
views
Deny Access to Folder
I am running 20.04 LTS. I am trying to deny a user access to a folder. In the terminal the user doesn't have permission, but in the GUI it prompts for admin credentials. Is there a way to stop it ...
0
votes
0
answers
62
views
Stuck with Emergency mode and fsck not working
The problem started with the following error on my screen while booting:
[ 0.106709] x86/cpu: SGX disabled by BIOS.
/dev/sda3: clean, 1108900/6111232 files, 9479779/24413952 blocks
you are in ...
0
votes
2
answers
4k
views
\\wsl.localhost is not accessible. Open folder error
I want to access wsl folder in File Explorer however I got this error
\wsl.localhost is not accessible. You might not have permission to
use this network resource. Contact the administrator of this ...
0
votes
1
answer
288
views
LibreOffice doesn't start without sudo
Trying to convert a .docx file to PDF and I run into problem.
sudo libreoffice is working, but libreoffice throws an error:
javaldx failed!
Warning: failed to read path from javaldx
LibreOffice 7.5 - ...
26
votes
9
answers
6k
views
How to fix "chmod" permissions after running "chmod 222 /bin/chmod"?
I ran chmod 222 /bin/chmod to know more about chmod. After that, when I run /bin/chmod, I get permission denied.
I tried to change the permissions of chmod back to 755, but it doesn't work.
Does ...
0
votes
0
answers
62
views
Need help with zfs import and getting plex to see datasets
Thanks for taking the time to read and provide any insight. So I didn't export this thing like I should have any did a force import. I have my data there in the new machine as /mnt. I can see the ...
2
votes
1
answer
212
views
Bash script issue: can create User but password is not being set correctly
in my ubuntu 22.04 server I created a bash script that setups my server to serve laravel apps, one of the steps I do is:
Downloading mysql
Creating a non-root user,
Grant all privileges to non-root ...
2
votes
2
answers
3k
views
home/user/Desktop and Public Folders Show as Type Link (broken) (inode/symlink)
Ubuntu 22.04 LTS asked me for an update which I did and apparently everything went ok but upon restarting all my home folders appeared in my Desktop.
Looking into my home folder I found out that home/...
0
votes
0
answers
79
views
Lua error for wireshark attempt to index global 'bit' (a function value)
I'm getting this error:
Here the packet is not properly decoding on wireshark version 4.0.6
Attached is the packet
Frame 3457: 140 bytes on wire (1120 bits), 140 bytes captured (1120 bits) on ...
0
votes
0
answers
303
views
How to mount exFAT/FAT partitions as user without all files having the executable bit set in permissions?
Ubuntu 23.04 here, but should apply to almost every version.
I want to mount external drives via the user mount mechanisms in the system (is udev involved?), often over SSH with udisksctl mount -b /...
0
votes
0
answers
80
views
Cannot execute .sh file
I am having an issue making a file executable. The file is gatewaystart.sh. I have unzipped a downloaded folder containing the specified file, into /opt/ibc using the command
sudo unzip ~/Downloads/...
0
votes
1
answer
106
views
AppImageLauncher stuck at 'Watching directories' when trying to run eDEX-UI AppImage
I recently installed eDEX-UI on my Ubuntu system using the AppImage format. However, when I attempted to run the AppImage from the terminal using the command sudo appimagelauncherd eDEX-UI-Linux-...
1
vote
1
answer
266
views
encfs decrypting usb folder needs root permissions
I have a usb drive with an encfs encrypted folder. I usually decrypt this with
encfs /media/user/DBx/enc /media/user/DBx/dec
When I try this with a new Ubuntu install using 22.04.3, I get the error:
...
1
vote
0
answers
866
views
Allow user to run specific commands
How do I enable a user to run specific sudo commands without the need to type a password?
I already tried the following:
I have a script /usr/local/bin/perform-update with the rights -rwxr-xr-x 1 root ...
1
vote
1
answer
4k
views
Server refused our key - No supported authentication methods available (server sent: publickey) - Permission denied (publickey): Ubuntu server
I have an AWS EC2 instance running. I was able to connect using my chomed (-r--------) keys using MobaXTerm and SSH (Ubuntu for Windows) (.pem key) and putty (.ppk key).
I'm also working on the server ...
0
votes
0
answers
40
views
Private Shared Folder
Good day,
I have a question regarding my private shared folder.
I add already a user called 'private'
something like this:
lhon@lhon-server:~$ sudo adduser private
Adding user `private' ...
Adding new ...
0
votes
0
answers
171
views
Steam cannot "explicitly" access files from ANY partition on Ubuntu
there used to be an issue where I'd have to unmount and remount a drive multiple times in addition to rebooting my Ubuntu system numerous times too, just to have a chance of fixing Steam not being ...
1
vote
1
answer
2k
views
/run/user/1000 is not owned by UID 1000, as it should
So I have this error going on, and its the origin of a lot of errors with snap that I'm recieving. So when I execute:
$ systemctl status display-manager
Recieved some text and:
gkr-pam: unable to ...
0
votes
0
answers
38
views
Unable to mount volume: "Permission Denied", on second account
Ubuntu 22.04.2 LTS
I have 2 user accounts, named y and z. I use one of them for fun stuff, and the other one for school.
I can mount my 1 TB unencrypted external ssd with legally obtained anime ...
0
votes
0
answers
103
views
Ubuntu 22 and Apache protected access
I have a website that was set in 2004 with an ISP running Debian. The ISP just jacked up my yearly fees 3x without warning, I am playing around with a Cloud Server running Ubuntu 22.
I haven't played ...
1
vote
0
answers
29
views
chmod changes permissions but only briefly
During creation of a K3S cluster with ubuntu/jammy64 box. When creating the control plane VM, K3S is installed and then permissions are set on the k3s.yaml file for group k3s members, of which vagrant ...
0
votes
0
answers
31
views
Permissions and secnd hard disk drive
I put in a new ssd and installed 22.04 ubuntu. I have my HDD as a second drive. I have photos and recorded camera videos on the second drive or HDD. I try to access them but it comes up as I am not ...
1
vote
0
answers
23
views
Permission denied when running script, but correct file permissions and ownership are in place [duplicate]
I am unable to run scripts that I previously had been doing:
$ SCRIPT.SH
bash: /media/USER/PATH/bin/SCRIPT.SH: Permission denied
Checking the file permissions and ownership, that are as expected:
$ ...
0
votes
1
answer
108
views
I have another user than root with UID 0
I'm running a VPS which I have forogtten for quite a while. It was still running Ubuntu 18. I logged in today an saw that apparently the server was hacked, it was running a cryptominer and stuff.
So I ...
0
votes
0
answers
250
views
Password Works for Logon but Not for Update Authentication (Ubuntu 22.04.2 LTS)
My password in Ubuntu 22.04.2 LTS is being rejected for authentication of updates, app install/uninstall, unlock, ... However, it does work when I log on after a restart. Until a week or so ago it ...
2
votes
1
answer
2k
views
Permission denied trying to start a new process from a Java application as root user (with non-installed JDK)
I try to start a new process using Java's ProcessBuilder, running as root user (during the prototyping phase).
It works as expected when I run the application using a JDK installed with apt.
My ...
0
votes
1
answer
648
views
Permission denied on /media
I'm using Ubuntu 22.04 on Dell Alienware R13 desktop (multiboot with Windows 10).
My problem is that permissions are denied on /media directory.
I don't know what caused this problem.
As I recall, I ...
1
vote
1
answer
57
views
Apache unable to write to NTFS automounted drive
I've a main ssd drive where os is installed
I have also a second drive (NTFS auto-mounted) where all www is hosted
All was working fine and Apache could load/write/etc. files into this NTFS partition
...
-2
votes
1
answer
188
views
im unable to run sudo command
sudo: /etc/sudo.conf is owned by uid 1000, should be 0
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
im unable to use sudo probably when i tried to change the acxess ...
0
votes
0
answers
27
views
libinput-config-default folder in /downloads/
I was clearing out my downloads folder and I had a copy of the etc folder from the root. I'm not sure why I had a copy of the etc folder there, but I just went ahead and deleted it along with ...
0
votes
0
answers
23
views
restore sudo privilege without knowing sudo account [duplicate]
I always access to a test server using an account. But I has done some mess and now the user is no more a root user. I can restore privileges without knowing root credential? How can i solve (at last ...
0
votes
0
answers
48
views
Ownership of External Drive on Ubuntu Server
I am having a lot of trouble with a Western Digital 6TB external drive since I've first used in a year or so ago.
To begin with, I was getting into the world of servers and was making use of an old ...
0
votes
0
answers
59
views
Samba Permissions Issue, moved shared folder to external drive
I am running Ubuntu Server on a rasp pi 400
I installed samba, created samba user and password, created a shared folder with samba(user) as owner and group. This shared folder was located under /home/...
1
vote
1
answer
232
views
What does "enable" mean when adding a samba share user?
In this SO question, the asking person mentions the adding and then the editing of a samba user account.
Something like this:
$ sudo useradd --system --no-create-home --group=smb-group -s /bin/false ...
0
votes
0
answers
251
views
Openvpn as nobody fails: Options error: --status fails with '/var/log/openvpn/openvpn-status.log': Permission denied (errno=13)
Openvpn on Ubuntu 22.04
I can run successfully openvpn as superuser. Now I want to run it as user nobody before making it a service.
sudo -u nobody openvpn /etc/openvpn/server/server.conf
However I ...
0
votes
0
answers
825
views
How to access File from local network which I shared through "Media Sharing feature" in setting option
I am trying to access ubuntu folder from my android phone. I know there may some other option available. but I saw there is a option available in setting which is sharing > media sharing. after I ...
0
votes
0
answers
101
views
ACL permissions set correctly but user still doesn't have access
I am trying to give access to a user named 'test' for a specific directory under /var/log, but not everything else under /var/.
I used the following commands:
sudo setfacl -R -m user:test:--- /var/
...