Search:

Type: Posts; User: Raner; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. How to exit prompts given while updating packages

    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...
  2. Re: Best way to copy public ssh keys from a user to root?

    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...
  3. Best way to copy public ssh keys from a user to root?

    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...
  4. Replies
    10
    Views
    1,268

    Re: Understanding SSH and SSH Keys

    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...
  5. Re: Can you evaluate this backup system for security risks?

    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...
  6. Can you evaluate this backup system for security risks?

    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...
  7. Re: Can't change the group owner of a remotely mounted driv

    I could not get chown to work either. Here are my commands:

    from within /home/local-system/Desktop/:


    mkdir 777 backups

    sshfs -o...
  8. Re: setting the user and groupid of a mounted drive via sshfs

    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...
  9. setting the user and groupid of a mounted drive via sshfs

    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...
  10. Can't change the group owner of a remotely mounted driv

    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...
  11. Replies
    10
    Views
    1,268

    Re: Understanding SSH and SSH Keys

    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...
  12. Replies
    10
    Views
    1,268

    Re: Understanding SSH and SSH Keys

    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...
  13. Replies
    10
    Views
    1,268

    Understanding SSH and SSH Keys

    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...
  14. Re: Good way to backup a whole server/individual server files?

    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?
  15. Re: Why is "sudo gpasswd -a $USER fuse" a step in the ubuntu community guide to sshfs

    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.
  16. Why is "sudo gpasswd -a $USER fuse" a step in the ubuntu community guide to sshfs?

    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...
  17. Good way to backup a whole server/individual server files?

    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...
  18. Re: proper shebang to run a php script as a file from the terminal

    Thanks, I will try these solutions.
  19. proper shebang to run a php script as a file from the terminal

    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...
  20. removing logs after compressing them with logrotate

    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...
  21. Re: run logrotate as normal user or sudo? encounering errors with both

    If I can provide any more information that might help, please let me know.
  22. Re: Is there a way to NOT delete old log files with logrotate?

    Thanks for the help. Setting the rotate option to a very large number is what I ended up doing.
  23. run logrotate as normal user or sudo? encounering errors with both

    I am testing a logrotate config using the debug flag:


    logrotate -d [path_to_config]

    if I use


    sudo logrotate -d [path_to_config]
  24. Re: Is there a way to NOT delete old log files with logrotate?

    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.
  25. Re: Is there a way to NOT delete old log files with logrotate?

    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...
Results 1 to 25 of 27
Page 1 of 2 1 2