Skip to main content

All Questions

Tagged with
5 votes
0 answers
449 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 ...
Gonzalo Hernandez's user avatar
0 votes
1 answer
641 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 ...
jstuardo's user avatar
  • 327
0 votes
0 answers
222 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 ...
santosh baruah's user avatar
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 ...
Abu Yousef's user avatar
2 votes
1 answer
426 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 ...
Mantas's user avatar
  • 21
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 ...
E.S.'s user avatar
  • 231
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, ...
Roman's user avatar
  • 1
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 ...
Bilal Yousaf's user avatar
0 votes
0 answers
409 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 ...
Price's user avatar
  • 101
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 ...
Nelson SMG's user avatar
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....
gfields's user avatar
  • 11
0 votes
1 answer
947 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 ...
Rashid ur Rehman's user avatar
0 votes
1 answer
504 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 ...
Reisenrich's user avatar
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 ...
Garreth's user avatar
  • 111
1 vote
2 answers
624 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 ...
yonikawa's user avatar
  • 129

15 30 50 per page