Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 4 years ago.
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.
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.
Improve this question
When I try to use 'tail' command in a cloud server, I'm get a permission denied error:
$ ssh myUser#server
:~$ tail /var/log/syslog
tail: cannot open ‘/var/log/syslog’ for reading: Permission denied
How to get permission in tail command?
The file you are trying to read has permissions that disallow reading by any users that aren't part of the admin group.
Option 1: Run the tail command with the sudo command which escalates your access to root for the command that follows.
example
sudo tail /var/log/syslog
Option 2: Add your user to the admin group so that you don't have to sudo each time you want to read the syslog file.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 4 years ago.
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.
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.
Improve this question
I'm using samba in Linux Fedora 26 to mount a share folder, but it is showing some error which is mentioned below:
The Command I used is:
mount_smbfs -I 192.168.1.10 "//Mohamed#gworks-developer-pc/smbtest1" /mnt/local_share
And I get the following error:
bash: mount_smbfs: command not found
I am attaching error Image Samba mount point for reference.
How to solve the issue, Any idea.....?
Use cifs instead. Take a look at this link.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 5 years ago.
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.
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.
Improve this question
I can ssh to a digitalocean server using:
ssh root#1.1.1.1 (with the correct IP address)
however, after adding a user:
adduser git
...
is this information correct?
Y
...
I am not able to SSH with this new user
ssh git#1.1.1.1
Permission denied (publickey).
Why is my public key correct for root but not for git?
Update
If it matters, I am using digitalocean.
I know the problem, what your facing, you need to check the privilege of your key.
Change the user right permission. I do had an identifical problem, I can able to clone git via https not via ssh.
chmod utility will solve your issue:
This command will solve your problem.
chmod 777 <id_rsa_key(file)>
Some other frequently used examples are:
777 anyone can do anything (read, write, or execute)
755 you can do anything; others can only read and execute
711 you can do anything; others can only execute
644 you can read and write; others can only read
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
How can I configure Linux to see the prompt for the root password if Sam try to execute the following command: $ sudo mkdir /opt/test?
If Sam is part of sudoers, the terminal ask for the user password not for the root password.
In /etc/sudoers, add this line:
Defaults rootpw
Make sure you use visudo for editing this file. For more information, you can check the link
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
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.
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.
Improve this question
I'm working on a network with many Linux machines.
In one of them I have a file that I suspect was pushed by another machine.
The machines can access each other using ssh connections.
Is there anyway I can tell which machine pushed the file?
I tried looking for ssh logs but the /var/log/secure/ directory doesn't exist.
Depending on the distro and your logging settings, you may have some luck with /log/auth.
Try grep sshd /var/log/auth.log
Depends on your distro, you can check following files from your distro.
/var/log/secure
/var/log/auth.log
/var/log/syslog
/var/log/daemon.log
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 a regular username on a linux machine. I also have the root privilege. Today I found my username was deleted. That is, if I logged in as root and then ran
su myusername
The systems said "myusername" does not exist. I checked file /etc/passwd and "myusername" was not there.
My question is, is there anyway to find out who deleted "myusername"?
You might try something like this:
grep "deluser" /home/*/.bash_history /root/.bash_history