Networking :: Rsync No Shell Access

Apr 14, 2010

I am looking for a secure way to backup data from user's computers ( Linux/Windows ).My needs :
1. Secure
2. Per user backups
3. Windows/Linux compatible ( server will be Linux only )
4. Incremental backups

My preferences :
1. Rsync

Things I can not do :
1. Give out shell access ( forget rsync -e ssh )
2. Use a protocol that takes too many ports ( my box is behind my router ).

View 5 Replies


ADVERTISEMENT

Programming :: Shell Script To Copy Newly Changed Files With Rsync?

Apr 20, 2010

I've got quite a decent rsync script setup, however I'd like to invoke it whenever there's change to a file. My initial idea was to use find, however this has two major flaws - the first being my particular unix veriant cant understand -print0 which means this doesn't work, the second is that I'm not 100% sure how to put variables into quotation marks so ls can understand the target:

Code:

for i in `find /shares/ -mtime -1 -print`; do ls -ltr $i;done

View 14 Replies View Related

Ubuntu :: Cannot Access Rsync'd Folder On Remote Side?

Jun 24, 2010

I found a strange problem while using rsync to backup my files. I use a script:

#!/bin/bash
SOURCEDIR="/"
TARGETDIR="root@DLINK-13F017:/mnt/HD_a2/administrator/RAIDBackup/"

[code]....

View 4 Replies View Related

General :: Centos Grant Read Access For RSync

May 2, 2011

I am trying to setup a Rsync backup method.I have multiple files and folders all OWNED by different users.Now I can read the files as root.But I want to make a user for RSYNC that can ONLY read all these files for copying them across.It requires to create a non password login and I dont want to do that with the root user ! I have tried to create a new user and use 'setfacl':setfacl -m u:someuser:r /var/test.But when I su to 'someuser' I cannot copy the files to my homedir. So I think it wont work for rsync also.

View 8 Replies View Related

Ubuntu Servers :: Advanced Rsync - Make The Rsync Set Or Keep The User And Group Affiliations?

Nov 17, 2010

Thought I'd post it here because it's more server related than desktop... I have a script that does:

[Code]....

This is used to sync my local development snapshot with the live web server. There has to be a more compact way of doing this? Can I combine some of the rsyncs? Can I make the rsync set or keep the user and group affiliations? Can I exclude .* yet include .htaccess?

View 6 Replies View Related

Ubuntu :: Can't Rsync Gmail / Run Rsync --recursive --times --perms --links --delete?

Jan 7, 2011

When I run rsync --recursive --times --perms --links --delete --exclude-from='Documents/exclude.txt' ./ /media/myusb/

where Documents/exclude.txt is

- /Downloads/
- /Desktop/books/

the files in those directories are still copied onto my USB.

And...

I used fetchmail to download all my gmail emails. When I run rsync -ar --exclude-from='/home/xtheunknown0/Documents/exclude.txt' ./ /media/myusb/ I get the first image at url.

View 9 Replies View Related

Server :: Rsync Execution - With Crontab - Have Given Full Path To Rsync Too

Apr 12, 2011

I have a tiny shell script to rsync files between two servers and remove the source files.

This script works fine, when it has been initiated manually or even when the rsync command is executed on the command line.

But the same script doesn't work, when I try to automate it through crontab.

I am using 'abc' user to execute this rsync, instead of root, as root login to servers are restricted in all of our servers, by us.

As I mentioned earlier, manual execution works like charm!

When this rsync.sh is initiated through crontab, it runs the first command(chown abc.abc ...) perfectly without any issues. But the second line is not at all executed, and there is no log entry i can find at /mnt/xyz/folder/rsync.log.

View 6 Replies View Related

Software :: Run Rsync To Download Files From A Server Without Rsync Daemon?

Sep 18, 2009

I just tried to sync files from one server to another. After the sync process, I found the files are bigger than original ones.

I looked up the web and found someone mentions the rsync daemon. So I have to run the daemon on one server before I run the rsync?

The command I used is rsync --partial --progress -r source destination

View 1 Replies View Related

Server :: Rsync Can Not Rsync Files With Include Filter

Jul 21, 2010

use rsync to cp such files and dirs under /var/www/html/mydir directory but these two files(/dir4/1.html /dir4/2.html) cant rsync to dest mechine.

rsync configure file,below...

View 2 Replies View Related

Ubuntu :: Access The Shell From Desktop?

Jul 17, 2010

I need to access the shell prompt rather than GUI of Ubuntu. I have installed Ubuntu in Microsoft Virtual PC 2007 Sp1 wherein installation is successfull. Now i have downloaded PuTTy to my WinXP Desktop. So by what IP can i connect with Ubuntu Shell. How to configure IP in both Ubuntu and in Windows XP so that this will look like i am accessing the shell remotely.

View 8 Replies View Related

Installation :: How To Prevent Shell Access

Mar 23, 2009

I have a users, that log in from a terminal. They should not have any shell access, so currently their login script, at the end, starts the program that they use, and after that program ends, the login script moves on to log them back out. The problem is, they could press ctrl+c, while the login script is running, and it quits the login script and spits them out at a shell prompt. -- Is there any way I can prevent this?

View 4 Replies View Related

General :: How To Add User So That They Have No Shell Access?

Feb 18, 2010

Im want to know the command to add a user with no shell access so they cannot log onto the system, but there a user on there so for example they can be part of the email server.

View 2 Replies View Related

Server :: Rsync Fails In Cron - Ssh Key - For Rsync?

Dec 8, 2010

I'm using Ubuntu 10.04 LTS server and Postgresql 8.4. I have a .sh script that is run by cron every other hour. That works fine. The .sh script includes an rsync command that copies a postgresql dump .tar file to a remote archive location via ssh. That fails when run by cron; I think because it is (quietly) asking for the remote user's password (and not getting it). I set up the public/private ssh key arrangement. The script succeeds when run manually as the same user that the cron job uses, and does not ask for the password. I am able to ssh to the remote server from the source server (using the same username) and not get the password prompt (both directions), so why doesn't rsync work? I even put a .pgpass file in the root of that user's directory with that user's password, and the user/password are identical on both servers.

I think the problem is rsync is not able to use the ssh key correctly. I tried adding this to my script but it didn't help.

Code:

Here is the rsync command embedding in the .sh script.

Code:

Here is the cron entry:

Code:

View 6 Replies View Related

Debian :: Adding FTP Users Without Shell Access?

Dec 20, 2010

I use this command line to add an FTP user:

useradd ftpuser1 -d /userdir

This works, but I don't want to give Shell access to the users.

I tried this:

useradd ftpuser1 -d /userdir -s /sbin/nologin

but then user can't login at all - not into FTP and not into Shell.

View 5 Replies View Related

Ubuntu :: Command To Access A Secure Shell?

Aug 20, 2010

What's the command to access a secure shell?

View 2 Replies View Related

Server :: Integrate SSH Shell Access With Microsoft AD?

May 19, 2011

how to integrate SSH Shell access of a Linux Server with Microsoft AD?

View 2 Replies View Related

General :: GNOME3 / Shell Quick Music Access

Apr 16, 2011

After having been a Gnome user since initial release in 1999, I have now upgraded to Gnome3. I figured despite everyone's moaning, over 10 years of a successful desktop means I should give it a fair go.

One thing: If I have a music player such as Rhythmbox open, how can I change track without breaking my current task focus and heading to "Activities" now that the notification area icon is no more? I change track alot, do I really want to change windows to do it?

View 1 Replies View Related

General :: When Shell Is Changed Or Crashed / Still Need To Have Access Remotely?

Aug 29, 2011

I have remote location Linux running (CentOS 6.0). It has dynamic ip address so i installed noip2 service and copied the file cp redhat.noip2.sh /etc/profile.d/noip.sh. After that when the system restarted once, it never have the correct shell. As a result remotely when i try to ssh the server i cant login and i cant do anything.When i debug the ssh i see that debug1: Authentication succeeded (password). and command is also sent but nothing just happen.

View 2 Replies View Related

General :: Users Cannot Connect To The FTP Unless Their Shell Access Is /bin/bash

Oct 4, 2009

I have a CentOS dedicated server running ProFTP. I have created user accounts which are meant for FTP access only but the users cannot connect to the FTP unless their shell access is /bin/bash

Here is an example line that is outputted when I use this command:

This user can access the FTP fine, but he can also access SSH which I don't want to allow him to do. If I set his shell access to /bin/false then he can't connect to the FTP.

What can I use in instead of /bin/bash to allow FTP but don't allow SSH?

View 2 Replies View Related

Programming :: Access Grub Parameters Using Shell Scripts?

Apr 12, 2010

I am setting up my test / development machine with the following scenario in mind : I boot the machine and then select one of a number ( e.g. 3 ) boot options in Grub ( Normally "OpenSuse", "Safe Mode" etc., but in this case "System Restore Dev.", "System Restore Test" ). The only difference between these options are the settings ( e.g. "vga=378" ) in these cases something like "distro=dev" / "distro=test".

In a script run on the booted system I can extract the value of the "distro" parameter ( in this case "test" ) and use it as input for a command line tool. Meaning that name entered as the value for the "distro" parameter is used for loading a file when the system is up and running. The command line tool then restores the partition with the contents of the file and reboots the system.Now, my problem is this : How to I access the Grub arguments? Code snippets ( in shell scripting or python preferbly ) are more than welcome.

View 10 Replies View Related

Slackware :: Have Printer Installation Utility Can Access Through Shell?

May 14, 2010

Do I have a printer installation utility I can access through the shell? I tried installing/configuring my parallel port HP DeskJet 712C through CUPS using xfce but they didn't list my printer.

View 3 Replies View Related

Networking :: Rsync With Key Authentication?

Feb 20, 2011

I have done the port forwarding to a production machine from our office machine it includes 3 hopes ie 3 machine in which I have done the portforwarding... but I am not able to rsync and directory or file even small fies with 10KB, but I am able to do do the rsync in to the same machine with 2 hopes

View 1 Replies View Related

Networking :: Timeout While Rsync ?

Nov 26, 2009

I was trying to rsync datas from one server to a remote server. There is a firewall between the two servers and the 22 port is open for the servers.

Attached the error that I got.

View 2 Replies View Related

Fedora Installation :: Install Korn Shell Without Internet Access?

Jun 14, 2009

I work for AT&T and our Windows-centric workgroup is being tasked with supporting an app running on RedHat. To help my coworkers, I'm building a Fedora 11 VM that we can play with to familiarize ourselves with the UNIX environment.

Because of corporate network policies in place, my VM can't get access to the Internet.

Since we're AT&T employees, we're naturally using the korn shell on the production system. I'd like to install the korn shell on my VM. However, it doesn't appear to be part of the base fedora repository.

Is the korn shell available for Fedora? If so, how would I copy it to shiny media, mount it on my VM, and install it?

View 4 Replies View Related

Ubuntu Installation :: Access Encrypted /home From Rescue Shell

May 1, 2010

I have installed Kubuntu 10.04 x64 from scratch using the alternate installation CD and unfortunately I'm experiencing some serious troubles. Everything worked fine, installed packages, moved my backed-up data to my encrypted /home partition - until I rebooted. Usually I reboot the system right after the installation process to see if the boot process shows any errors, but what can I say, seems like I forgot to do it this time .

The problem is that the boot process just "hangs" right before the login window should disappear. By "hang" I mean dead: no switching to virtual terminals, no CTRL-ALT-DEL - the system just freezes.
I'm quite familiar with doing things shell-wise, so I started the "Rescue Mode" from the alternate CD and was able to mount my root partition.

Problem #1: No faulty log entries whatsoever: dmesg, boot.log, messages etc. all looking fine - except Xorg.0.log. I suspect the proprietary Nvidia drivers to be the culprit here, because what I'm getting is: "Caught signal 11 (Segmentation Fault). Server aborting"

Running "startx" as root from the rescue shell gives the same results: complete system freeze. "Looks like a reinstallation candidate, let's just backup my data" I thought, which brings us to

Problem #2: I can't mount my encrypted /home from the rescue shell. The exact steps involved are:

Mount my root partition and chroot to it. Issuing "ecryptfs-mount-private" gives the following error message: "ERROR: Encrypted private directory is not setup properly" Becoming my user "su - faulty" and trying step 2 again yields the same results. I feel like I'm almost there: I'm executing commands in my root environment, just can't seem to access my data which I'd like to backup before doing a clean reinstall. Any thoughts?

View 3 Replies View Related

Ubuntu :: Access MySQL-Workbench From Desktop Without Having To Tie Up My Bash Shell?

Aug 3, 2011

I just downloaded MySQL-Workbench and I see it in the folder: Code: /usr/bin how do I access it from my desktop without having to tie up my bash shell because the only way I can get to it right now is

Code:
cd /usr/bin
mysql-workbench

and only when I close the program can I use my bash for anything else.

View 7 Replies View Related

CentOS 5 Server :: MySQL Shell Access Denied / Get It To Work?

Feb 20, 2011

I'm having a hard time to access MySQL from the local or remote shell.
If I try to access MySQL, using mysql -u root -pxxxx I get the error 1045 Access denied...

MySQL is running and I can access it, using phpmyadmin.

There must be something blocking shell access. Can anybody confirm and tell me how to check/configure for shell access?
I'm using ca preconfigured CenOS from PBX in a flash and it seems they did some security settings - but I can't find any further information.
I know I should probably post there, but the Mods didn't activate my account yet. And you know how it is if you try to figure something out. You won't stop.

View 1 Replies View Related

Networking :: RSync Over SSH - Authentication By Cryptographic Key

Jun 25, 2010

I have 2 boxes, both using Slackware64 ver. 13.
Box1 - ssh server and rsync server daemon are functional.
Box2 - client box that connects to Box1 by ssh as well as rsync by way of ssh.

I followed the instructions in Chapter 2 of the O'Reilly book "The Secure Shell, The Definitive Guide" to setup ssh authentication by pub/private keys. The configuration works, but only once, and upon re-logging into Box2, I find I have to go through the following setup to make it work again -
$ssh-agent $SHELL
$ssh-add /home/mike/.ssh/id_rsa
then prompted to provide passphrase.

Then rsync over ssh will work - example:
rsync -e "ssh -p 45000" -avzi mike@10.10.10.100:/zzz /mnt/current
I want to get it configured so that it works every time with no user input, in order to configure automatic cronjobs using rsync commands like the one above.

View 5 Replies View Related

Ubuntu Networking :: Rsync Over SSH - Embed Logon Credentials?

Jan 18, 2010

Is there a way to embed the user password in the following code?

Code:
rsync -r -n --progress --delete -u -l -e ssh 192.168.1.9:/Volumes/1TB_Internal/Music "/media/Storage/Libraries/My Music"

[code]...

View 4 Replies View Related

Ubuntu Networking :: Mount Windows PC To Backup Using Rsync

Jul 1, 2011

I want to backup windows PC's in my network to my ubuntu 11.04 pc, using rsync. Rsync is working, but I have to mount the pc's. A few details.
My server is named: server
The windows pc is named: \PC_OF_MARTIJN
The folder where the mount is coming is: /home/bastiaan/backup/mounts
Credentials are in /home/bastiaan/backup/credentials and they're called: martijn

So what I'm going to add to /etc/fstab is this:
Code:
//server \PC_OF_USER /home/bastiaan/backup/mounts/user cifs credentials=/home/bastiaan/credentials/user,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
Will this work?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved