All Questions
52
questions
5
votes
0
answers
450
views
Files being created with the wrong owner
I'm using AWS sagemaker and today I went to commit some files and got this error:
Bad owner or permissions on /home/sagemaker-user/.ssh/config
fatal: Could not read from remote repository.
Please ...
0
votes
1
answer
651
views
How to avoid a user to list a directory other than his home directory in Linux
I hope this could be possible.
I created a linux user, called newuser, whose root directory is a directory containing a web site application (this is a developer I hired to develop the site). That ...
0
votes
0
answers
223
views
Issue with add Multiple user account and SSH key using Bash script
As per our requirement we provided our devloper group: devs:r-x to /var/log/httpd directory.
What is the best way to create a user account (in my case Dev User) in a Group using bash scrip, with the ...
0
votes
0
answers
280
views
Create an SSH user who has permission to access root directory but limited commands
I want to constrain the user to only have permissions for specific commands in Centos but he need to access root directory.
I want to prevent user from removing, restart, shut down
But he should be ...
2
votes
1
answer
436
views
Create new SSH user and give him permission to an existing directory
Im trying to create new user called svecias and give him permission to connect via SFTP only to existing directory and deeper (/usr/share/nginx/itsupply).
Currently directory is owned by nginx in ...
0
votes
0
answers
43
views
Linux create a new user that shares everything of another user
A little background first, since I know this question seems very random.
I am using vagrant to help orchestrate a RedHat virtual machine. Vagrant is great in just about every way, however it forces ...
0
votes
0
answers
2k
views
Samba shares are accessible only for a specific user set by chown
I've stumbled upon a peculiar issue regarding samba share.
It only works when ownership is given to the samba user (shared) by running chown -R shared:sambasecure /mnt/Backup. I'm running CentOS 8, ...
0
votes
0
answers
1k
views
adduser: cannot lock /etc/gshadow;
With running serval commands in Linux, I am getting the error when trying to create a new user:
sh-4.2$ sudo adduser mbyousaf
adduser: /etc/gshadow.1270: Structure needs cleaning
adduser: cannot ...
0
votes
0
answers
414
views
tar creates 0-byte files and issues permission denied errors
I am working in a CentOS environment and am setting up perlbrew (App::perlbrew/0.87) locally. I've essentially been following the steps here. I have set up perlbrew similarly in the past and no ...
0
votes
2
answers
9k
views
Can't start Bind open: /etc/named.conf: permission denied - Centos 7
so I'm really new on this and was following this tutorial to set up bind, and up to 4:50 I was having no problems, I could ping, use nslookup and had internet connection with the dns server, then we ...
1
vote
0
answers
4k
views
Permission denied when systemd-sysctl service starts and tries to write to file in /proc/sys/user/
I am trying to enable user namespaces on Docker. This of course requires user namespaces to be enabled in the kernel.
One of the steps to enable user namespaces in RHEL/CentOS is to:
echo "user....
0
votes
1
answer
951
views
rm: cannot remove ‘icons.css’: Permission denied (Centos 7)
I need to delete files but permission is denied. Even rm -rf command can't delete these files. I logged in as a root user. I've also tried
# rm -rf icons.css
rm: cannot remove ‘icons.css’: Permission ...
0
votes
1
answer
505
views
Sharing a Hard drive on Centos and using samba
I am having issues sharing a external hard drive using samba on centos. I am able to view the share group from my windows machine but when I attempt to accsess it, it says "you do not have permission ...
1
vote
0
answers
45
views
Moving files from an SFTP directory
I have followed this tutorial to configure a Centos 7 server using sftp. The tutorial includes hardening the sftp target directory and user.
The sftpuser is able to sftp files to /var/sftp/uploads
...
1
vote
2
answers
627
views
Accidentally changed sys files ownership - Centos 7
I accidentally changed the ownership of several files including system files in our Centos 7 server due to a syntax error. I was trying to change it for a particular folder, but missed the . and ended ...
2
votes
1
answer
12k
views
logrotate failing to rotate, permission denied as root user
I'm having a problem that I cannot wrap my head around. I've setup logrotate on a centos 7 server to rotate my app logs.
This file is in /etc/cron.daily (i even added a whoami to verify it's running ...
0
votes
2
answers
281
views
Why can't I access a folder I am the owner of?
I am running a CentOS vm in EC2. I ssh as ec2-user, and want to create a log folder for my application that I am about to deploy:
sudo mkdir /var/log/search-api
sudo chown ec2-user /var/log/search-...
0
votes
1
answer
1k
views
Apache document root doesn't change
So I installed apache on a virtual server using VMware on CentOS 7 minimal using:
yum install -y httpd
When I tried to change the DocumentRoot at vim /etc/httpd/conf/httpd.conf
, nothing happens ...
0
votes
0
answers
135
views
Linux: old udev (095) changing device permissions doesn't work
I have the following udev rule:
# f055:9800, 9801, 9802 MicroPython pyboard
ATTRS{idVendor}=="f055", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="f055", ENV{MTP_NO_PROBE}="1"
SUBSYSTEMS=="usb", ...
1
vote
0
answers
355
views
unable to create file in directory even it has group permission
i've created a group call "perm" and it has user apache & ruey.
[root@xxx ~]# groups apache
apache : apache perm
[root@xxx ~]# groups ruey
ruey : ruey perm
i've set group "perm" into my web ...
1
vote
1
answer
437
views
Centos 7 Serial Port Permissions in VMWare Player
Ok, what am i missing.
TLDR; I've done all I'm supposed to with permissions, lock directory, compiling, etc of Kermit and I still get the "Sorry, write access to UUCP lockfile directory denied."
...
0
votes
1
answer
72
views
Granting root privileges to another user on my Cent OS install?
I have disabled root on my webserver account for security purposes, and have granted root privileges to another user in order to use that user instead of having to keep re-enabling root just to check ...
0
votes
1
answer
146
views
/usr/local/ Ownership Overwritten on CentOS Cpanel
I have run the command chown -R myuser:myuser /usr/local/ on a VPS machine running CentOS with CPanel installed. This has overwritten all the ownership in the apache, cpanel, php install folders and ...
1
vote
2
answers
1k
views
smssend giving permission error on CentOS 7
I am trying to send a sms on Centos 7. I am using a com port modem that is configured, and I have installed smstools. However when I try to send a sms using this command:
smsend 0522222222 'testing'
...
2
votes
1
answer
5k
views
Getting error: "Error constructing proxy for org.gnome... Could not connect: Connection refused" when running gnome-terminal
I am getting the error: "Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Could not connect: Connection refused" when I try to run gnome-terminal. I am running CentOS 7. I ...
2
votes
1
answer
2k
views
Centos Sftp Ssh - How always create files with rwx-rwx-r-x and always owned by a certain group
I have a user myuser, which is only allowed to connect to ssh via sftp. I'd like this user to always create files with rwx-rwx-r-x and always owned by the group apache. I've tried to accomplish the ...
5
votes
0
answers
8k
views
Failed to adjust OOM score of renderer with pid X: Permission denied
I'm not sure what exactly causing, but I'm getting following error:
Apr 11 12:30:00 X alacarte-made-2.desktop: [1712:1735:0411/123000:ERROR:zygote_host_impl_linux.cc(162)] Failed to adjust OOM score ...
1
vote
1
answer
3k
views
Samba 4.2.3 - Access Denied to Home folder as root user
I am running CentOS 7.2 x64 with Samba 4.2.3-12.el7_2. My Samba config is as follows:
[global]
server string =
log file = /var/log/samba/log.%m
max log size = 50
guest ...
1
vote
2
answers
154
views
Why is a user only added to one group at a time?
I'm trying to add Apache and a user called admin to the same group on CentOS.
When I run id admin I get groups 1000 (apache) and group 1002 (admin), when I run id apache I get groups 1000 (apache) and ...
1
vote
0
answers
853
views
PostgreSQL and database cluster ownership on shared storage
For my research, I am using an always on virtual machine for the primary analysis of my data. In doing this I need (or, I suppose, would like to) create and store the data in a PostgreSQL database. ...