Redhat sudo user cannot access psacln owned directories [closed] - linux

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 days ago.
Improve this question
I created a new user (phpdev) and gave it sudo access using
usermod -G wheel phpdev
but when I login as that user I cannot access anything below /var/www/vhost/ which is all owned by psacln. What am I doing wrong?
[phpdev#kdjf-x2z7 vhosts]$ cd mywebsite.com/
bash: cd: mywebsite.com/: Permission denied
[phpdev#kdjf-x2z7 vhosts]$ sudo cd mywebsite.com/
[phpdev#kdjf-x2z7 vhosts]$ pwd
/var/www/vhosts
[phpdev#kdjf-x2z7 vhosts]$

Related

How to regain access to home folder after changing group on own VM? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
How do I regain access to my home folder?
I was trying to get shared folders to work in VirtualBox and I changed the user group to vboxsf by invoking
sudo usermod -a -G vboxsf dev
I rebooted then I lost access to /home/dev, the home user folder.
I tried to fix it but it did not work. The changes do not get persisted!!
I own the VM. How do I fix this?
The solution is simple. Just change the ownership of the folder "/home/dev"
you can do this by chown command:
sudo chown -R vboxsf:vboxsf /home/dev
and then your ownership and group will be changed from root to vboxsf
Check if the home directory is existing by doing ls -ltrh /home if you see directory named dev then check it's owner

Ubuntu - sudo with ACL [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I am sorry if this is something obvious but I am new to Linux.
I was trying to set a git bare directory and for this I installed ACL on Ubuntu. Then I ran the following commands:
adduser git
mkdir /repositories
chmod 700 /repositories
setfacl -m defaut:user::rwx /repositories
sudo chown git:git /repositories
Everything was fine until I rebooted the machine. Now I am unable to execute sudo anymore. Everytime I do it as myself I get following message:
[[sudo]] password for Andre:
Sorry, try again
The password I enter is the same I always used, and I don't have any problem to SSH with these account credentials.
Does anyone knows what happened and how to fix it?
I think that the issue was with setfacl. I should have used 'repositories' instead of '/repositories'. In that way I set acl across the root. I ended up reinstalling Linux.

Default user ubuntu ec2 deleted Accidently [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have accidently deleted the folder of defaut user ubuntu in my ec2 server , son whene i want to reconnecte to ssh , it gives me Permission denied (publickey).
Please my friends , really i'm blocked i have my data in this server and i can't find any way to access , please help me to solve this.
Stop the VM
In the EC2 console, under 'Actions' select 'View/Change User Data'
Enter the following, replacing the <username> with the desired username, and <publickey> with your public key from your computer
#!/bin/bash
useradd -ms /bin/bash <username>
mkdir /home/<username>/.ssh
echo '<publickey>' >> /home/<username>/.ssh/authorized_keys
chown -R <username>:<username> /home/<username>/.ssh
chown -R 600 /home/<username>/.ssh
Save and start VM

Whats does adding user to sudoer file do? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am trying to run a command that needs to write to the / folder. I added myself as user to sudoers file using sudo visudo. Added the following line at the end of file.
yedg ALL=(ALL) NOPASSWD: ALL
The command still fails complaining about permissions. Now this makes me wonder does adding to sudoers file allow me to run as root or does it give me privileges similar to root? Looks like the former. Am I right or did I miss something?
After you are added to sudoers file, you have permission to execute commands as root through sudo command.
Something like this:
sudo apt-get install skype
sudo rm -rf protectedDirectory
Actually sudo means substitute user do.

R library unwrittable [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I want to update the core packages of R on ubuntu 12.04. But every time R says that it has no permissions to write to the library. Other packages with do not come with the r-core installation through the terminal. sudo apt-get install r-base are installed in my personal library. I gave myself the owner permissions of every library folder and this does not work.
So am i able to make this library writtable and if so, how can i do it? Or is there a way to Run R as administrator/root.
I already tried a lot of options from the internet but could not find what i was looking for.
Many thanks in advance!
Yes, by default R packages get installed under /usr/lib, and you need superuser privileges to install more.
So you can either run R using sudo and run commands like install.packages() from there:
sudo R
or edit your ~/.Renviron as described in this post, e.g.
$ mkdir ~/R_libs
And add this line to ~/.Renviron:
R_LIBS="/home/your_username/R_libs"

Resources