When updating (sudo apt-get update) sometimes a package will ask if I want to overwrite an older configuration file. I have occasionally pressed 'D' to see the differences between the two files. But...
Type: Posts; User: Raner; Keyword(s):
When updating (sudo apt-get update) sometimes a package will ask if I want to overwrite an older configuration file. I have occasionally pressed 'D' to see the differences between the two files. But...
Thanks for the replies.
My use case is that I have a cron job that runs as root but it connects to a remote machine. The normal user on this machine can connect to the remote machine already...
I have previously used the method "ssh-copy-id" to copy public keys to computers that I want to be able to log in to from my current computer. But I cannot specify that the remote user that I log in...
Another SSH question:
The /etc/ssh/sshd_config has the option to disable password authentication.
# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes
If...
Thanks for the comments. As a newbie, I learned alot from your reply - I was not considering the value of permissions and ownership. Been looking up the explanations you made for the past hour to try...
Can you evaluate this backup system for security risks?
I’m new to linux and trying to form a good backup system.
I have a program that writes backups to a sshfs mounted drive. This drive is...
I could not get chown to work either. Here are my commands:
from within /home/local-system/Desktop/:
mkdir 777 backups
sshfs -o...
Thanks sandyd. I think I understand what I am missing now.
I tried idmap=user and thought it meant for me to put the intended user's name in for "user", but instead it maps to the current user. So...
I am trying to mount a drive using sshfs and give access to another user and group (think something like apache). I use this command:
sudo sshfs -o allow_other...
I run this command to mount a folder for root access only:
sudo sshfs user@xxx.xxx.xxx.xxx:/home/USER/Desktop/remote ~/Desktop/remote
but once it is mounted, if I try to change the folder's...
I successfully got most things working and I think I understand everything much better now.
To be clear on some things, if I wanted to log into the server via SSH from some new machine but did not...
This was all very helpful! I am going to run through it all again right now.
The reason I wanted remote root access is because (probably due to my limited knowledge) I am not sure how to automate...
I am working through building my first server in a vm. I am fairly new to linux in general. I am mostly adapting this guide: https://help.ubuntu.com/14.04/serverguide/openssh-server.html
My...
rsync was something I hear about frequently.
Can I rsync the server while it is running? Can I rsync individual files while they may be opened?
Ok, I will just continue to try to mount without it for now. Thanks.
And openssh-server will only be installed on the server side.
Why is this
sudo gpasswd -a $USER fuse
important for sshfs?
It says to do it here, but I can't figure out why: https://help.ubuntu.com/community/SSHFS
The following commands...
What would be a good way to backup 1) a whole server, and 2) individual files on the server?
For 2), I had the idea of creating a remote mount on the server and then copying files into it and then...
Thanks, I will try these solutions.
I am trying to get a php script to execute when I run it from the terminal. The scripts name is myscript.php.
The content of the script is only:
#!/usr/bin/php
<?php
echo...
I am trying to remove the text file logs after compressing them with logrotate.
I successfully have the log moved to a folder for old logs using the olddir setting, and compressed to a logname.gx...
If I can provide any more information that might help, please let me know.
Thanks for the help. Setting the rotate option to a very large number is what I ended up doing.
I am testing a logrotate config using the debug flag:
logrotate -d [path_to_config]
if I use
sudo logrotate -d [path_to_config]
Thanks. Unfortunately the man page did not say. I expect it either defaults to something, or if I am lucky, doesn't put a cap the rotation, but I am completely unsure.
Thanks.
Would you happen to know what happens if you leave out the "rotate" parameter all together? This was my first guess, but I can't find it documented what the default is if this is left...