LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-27-2004, 07:45 AM   #1
blubbfish
LQ Newbie
 
Registered: Feb 2004
Posts: 29

Rep: Reputation: 15
user permissions


Hi,
i want a normal user to be able to only execute the rsync and the normal user commands without giving him root privileges. The normal standart user rights should be equal. ssh connect is np my prob is i want to "rsync -e ssh" a special file and i want to cron this job but the job has to run with a non root user.
rsync runs fine with the root user but how can i allow one special normal user to run rsync. The tough thing is i am not allowed to run sudo!
Please help me;-)

Greetz
Blubb
 
Old 04-28-2004, 02:14 AM   #2
yfel
LQ Newbie
 
Registered: Apr 2004
Location: Peoria, IL, United States
Distribution: Debian Sid
Posts: 4

Rep: Reputation: 0
One traditional way to do things like this is to create a group and use that to handle the permissions. Let's say I wanted the user Bob to be able to send the file /var/log/syslog to a remote server via a cronjob.

If I wanted to go the group-permissions route, I could create a group called "syslogsenders" and add Bob to it. Then I would assign group ownership to the file and set the permissions, like so:

Code:
addgroup syslogsenders
adduser Bob syslogsenders
chgrp syslogsenders /var/log/syslog
chmod 0640 /var/log/syslog
The chmod line there sets the permissions to rw-r-----, meaning that the owner (root) can read and write, the group (syslogsenders) can read, and nobody else can do anything. Since Bob is a member of group syslogsenders, he can read /var/log/syslog (and thus rsync it in the cronjob).

An alternative way to do this involves access control lists, but it's not as standard in the UNIX world presently, and this way is tried-and-true.

I hope this helps.
 
Old 04-28-2004, 06:33 AM   #3
blubbfish
LQ Newbie
 
Registered: Feb 2004
Posts: 29

Original Poster
Rep: Reputation: 15
Smile

thanks for the tip its functioning with the group permissions even im not too happy with this solution its a workaruond.
Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
user permissions cubax Linux - Security 4 12-17-2004 01:48 PM
user permissions blubbfish Linux - Newbie 1 04-27-2004 01:22 PM
user permissions Hmmyah Linux - Newbie 4 12-11-2003 08:03 PM
User Permissions BigDDave2001 Linux - Security 4 11-17-2003 05:43 AM
user permissions newpenguin Linux - General 7 11-07-2002 01:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration