D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] How do I change which commands my users may use?



On Monday 27 Oct 2003 8:23 pm, Jonathan Melhuish wrote:
> I run a (Cobalt RaQ) web server on which a couple of people (myself
> being one) have user-level shell access.  I'm trying to set up rsync so
> that it logs in under an SSH connection and transfers files over that.
> Basically it seems to log in, then run the "rsync" command to do the
> file transfer (correct me if I'm wrong!).
>
> However, my user doesn't have permission to run the rsync command
> ("command not found").  How do I change it so that I (or, indeed, any
> other normal user) may run the 'rsync' command?

-rwxr-xr-x    1 root     root       186700 Feb  6  2003 /usr/bin/rsync*
Without any SUID/SGID, rsync is still executable as an ordinary user on this 
Mandrake system, even if I su to a different (ordinary) user.
man rsync says:
o      does not require root privileges

Is something else going on? 

Could it be a path permission problem - perhaps the full path to rsync is 
needed (like /sbin programs on RedHat)? (Or update the local path / 
.bash_profile?)

Some kind of NFS/non-default ext2 mount for that user's home dir that has 
noexec or something?

-- 

Neil Williams
=============
http://www.codehelp.co.uk/
http://www.dclug.org.uk/
http://www.isbn.org.uk/
http://sourceforge.net/projects/isbnsearch/

http://www.biglumber.com/x/web?qs=0x8801094A28BCB3E3

Attachment: pgp00002.pgp
Description: signature


Lynx friendly