Rsync on Cygwin - Restrict user to several directories

Thread Tools Search this Thread
# 1  
Rsync on Cygwin - Restrict user to several directories

I'm using rsync on cygwin (winXP) to sync our files between several laptops and XP (acting as a file server)

For simplicity I use the same user account with different certificates over SSH.

Now my question is;
If a user understands the logic and modifies the rsync command, he can easily download everything from the XP box, even from different drives.
How can I restrict the common user account (say "rsyncuser") to only several folders on specific drives ?

Thanks for any help..


Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #121
Difficulty: Easy
The UNIX certification mark is commercially licensed by The Open Group.
True or False?

9 More Discussions You Might Find Interesting

1. Solaris

Giving read write permission to user for specific directories and sub directories.

I have searched this quite a long time but couldn't find the right method for me to use. I need to assign read write permission to the user for specific directories and it's sub directories and files. I do not want to use ACL. This is for Solaris. Please help. (1 Reply)
Discussion started by: blinkingdan
1 Replies

2. Shell Programming and Scripting

Rsync of several directories

Dear all, I am writing a script to backup a big quantity of directories from one laptop to a server. In a script on the server, I have a loop in bash like this: for SRC_DIR in "$LIST_OF_DIR_TO_BACKUP" ; do rsync -av user@laptop:/home/user/$SRC_DIR /home/user/backup done As I said... (2 Replies)
Discussion started by: freddie50
2 Replies

3. UNIX for Dummies Questions & Answers

Can cygwin rsync handle temporary network outages?

We're using Deltacopy's distribution of Cygwin Rsync (v3.0.4, I believe) to backup two large Virtualbox virtual hard drives from our work Windows 7 VM host, over the internet through Logmein Hamachi VPN, to an XP PC in my boss's basement. I have rsync running in a batch file which monitors the... (1 Reply)
Discussion started by: scottgus1
1 Replies

4. Red Hat

Restrict user access

Hi there I have an application user on my system that wants accesses to these file systems as such: rwx: /SAPO /SAPS12 /R3_888 /R3_888B /R3_888F /R3_888R r: /usr/sap these are the existing FS permissions:ownerships: # ls -ld /SAPO (9 Replies)
Discussion started by: hedkandi
9 Replies

5. UNIX for Dummies Questions & Answers

Restrict user access.

Hi All, How can we restrict a particular user access to a particular shell in solaris 10. Thanks in Advance. (5 Replies)
Discussion started by: rama krishna
5 Replies

6. Red Hat

Restrict user to a particular directory

Hi I have a Fedora10 server and i need a particular user to view files only in a particular folder. All other files in other folders having "read" permission for all shouldn't be accessible to this user. Please let me know if ther's a way. Thanks, HG (5 Replies)
Discussion started by: Hari_Ganesh
5 Replies

7. Shell Programming and Scripting

rsync multiple remote directories one connection

Hi, I want to specify multiple remote directories but want to transfer them in a single command with one connection with remote server. e.g. rsync -vrt --size-only --delete user@host:/home/user1/dir1 user@host:/home/user1/dir2 user@host:/home/user1/dir3 .... local_dir/ I want to... (0 Replies)
Discussion started by: sardare
0 Replies

8. Red Hat

restrict access of a user to two directories only

Hi all, I am using RHEL 5.0 I need a user say test to have full access to two directories, say /tmp1 & /tmp2 only other than his home directory. I do not want to change his login shell which is ksh or bash by default. Moreover, he should not even have read access of other directories. ... (10 Replies)
Discussion started by: vikas027
10 Replies

9. Solaris

restrict a user to certain command

Hi all, I am using Sun OS 5.10. I am new to Unix. Is there some way to restrict a specific user to certain command say "/usr/bin/more" ?? for example: I want that user1 can execute more command & user2 can't. Can we somehow edit .profile file in the home directory of user to achieve... (1 Reply)
Discussion started by: vikas027
1 Replies
RoPkg::Rsync::ConfFile(3pm)				User Contributed Perl Documentation			       RoPkg::Rsync::ConfFile(3pm)

RoPkg::Rsync::ConfFile DESCRIPTION
RoPkg::Rsync::ConfFile is a class used to manipulate rsync configuration files. Is capable to maintaine the order of the modules, and even keep your comments and empty lines intact. SYNOPSIS
#!/usr/bin/perl use warnings; use strict; sub main { my $cf = new RoPkg::Rsync::ConfFile(filename => '/etc/rsyncd.conf'); $cf->Write('/tmp/new_rsyncd.conf'); return 0; } main(); METHODS
All methods, throw the OutsideClass exception, if you use them as class methods. Besides OutsideClass the methods are throwing other exceptions as well. Refer to each method documentation for more information. new(%hash) The class constructor. Accepts a hash as parameter. At this moment only one parameter can be specified inside the hash: filename . If this parameter is present, the file specified is parsed and loaded into the object. AddParam($pname, $pvalue) Add a new global parameter named $pname with value $value. AddComment($pval) Add a new global comment with value $pval AddBlank($bval) Add a new global blank line with value $bval AddNode($node) Adds a new RoPkg::Rsync::Node object to the current object. Before the node is added, the nodes list is checked for duplicates of the object. If a duplicate is found, the method does nothing. Exceptions: If $node is not a instance of RoPkg::Rsync::Node, Param::Wrong exception is raised. DelNode($node_name) Removes a node from the nodes list. The nodes are searched by their names. Returns -1 if the node was not found, the new number of nodes otherwise. HasNode($node_name) Returns 1 if the node with name $node_name was found in the nodes list, 0 otherwise. Clean() Clean the object. Removes all information (the nodes list, statistics, etc). Always returns 1. Parse($filename) Parse the configuration file $filename and returns the number of nodes. If $filename is not defined Param::Missing exception is raised. If the path does not point to a existing file, File::NotFound exception is raised. If the file could not be opened, File::Open exception is raised. Write($path) Write the configuration into the file specified by path $path. ToString() Returns the string representation of the configuration file. PREREQUISITES
perl 5.008 (or later) is required. Besides perl, you must have the following: *) RoPkg::Exceptions *) Scalar::Util *) English SEE ALSO
RoPkg::Rsync::Atom RoPkg::Rsync::ConfFile RoPkg::Exceptions AUTHOR
Subredu Manuel <> LICENSE
Copyright (C) 2005 Subredu Manuel. All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The LICENSE file contains the full text of the license. perl v5.8.8 2006-06-09 RoPkg::Rsync::ConfFile(3pm)

Featured Tech Videos