Changing rights without touching user and group?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Changing rights without touching user and group?
# 1  
Old 01-25-2011
Changing rights without touching user and group?

Hello,

I have a small problem and would be happy if someone could help me to find a solution:

A machine ("server") makes backups of different computers ("clients") using rsync. Users and groups are keept, so that it's possible to copy them back to the client if required. The number of groups and users changes every day. But how can a support member access one of these files on the server? Either the support user has to get root-rights, but this is not a very secure solution or I run a chown after each backup - but this would make the backup unusable, because it can not be copied back 1:1.

I guess there is no chance to give root rights to the support group which just takes effect on one folder containing all the backups?

Any ideas? Thanks!
# 2  
Old 01-26-2011
If this is homework, I can't tell what canned answer they want. If it isn't, please tell us more detail about the system.
# 3  
Old 01-26-2011
Hi, this is no homework, it's an existing and running environment.

The "Clients" are different Webservers, with multiple accounts, users and groups. There are daily changes on the datastructure, new accounts are generated (and with this accounts new users and groups on this client machines). All groups which are generated on these machines have one thing in common: the group itself is member of one "backup" group.
Now there is a backup/storage server connects itself to the client once a day and makes a backup of all files and folders via rsync. During backup the original user and group rights are keept - this user and group does not exist on the storage server, so I only can see the id of the group. So if a user deletes files on his client (webserver) unintentional we are able to copy the content back and of course on this machine user and group exist and therefore everything is back to the original state again. All this works fine so far.
But - if a some calls the support weather there exists a backup of a certain file and they want to check if there is a existing backup on the storage system this is only possible if they access the storage server with root rights, because the groups and users on the storage system do not exist. Therefore I'm searching a better solution...
# 4  
Old 01-26-2011
With groups and users continuously changing in an uncontrolled manner, I don't see a way to avoid collisions, i.e. a current UID potentially overlapping with a past one, or even a local one... I think you'll need to make a plan about how to map foreign UIDs and GIDs into local ones.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

User is a Part of a Group But Group Details Do Not Show the User

Hi, In the following output you can see the the user "richard" is a member on the team/group "developers": # id richard uid=10247(richard) gid=100361(developers) groups=100361(developers),10053(testers) but in the following details of the said group (developers), the said user... (3 Replies)
Discussion started by: indiansoil
3 Replies

2. Homework & Coursework Questions

user rights

good evening .. I have a plea, who I can help me with a management application user rights on the files in a Unix / Linux I need for college .. .. and not told us no clue .. thank you (1 Reply)
Discussion started by: alex90
1 Replies

3. UNIX for Dummies Questions & Answers

User Add and Rights

Dears, I want to add a user and give him rights only for a spesific folder and take the files via ftp. The user shouldn't see the other files above or belov his folder. lets say I have "user". my directories: /a /b/d /c when I connect to the system I want this "user" to connect... (3 Replies)
Discussion started by: hubatuwang
3 Replies

4. UNIX for Dummies Questions & Answers

User Access Rights

Hi Folks, My problem is an easy one for the experts here. All my applications run using a user id that creates files with only the following default rights: -rw-r----- I want to modify this user's account such that it creates files that assign read access to the everyone group by default:... (7 Replies)
Discussion started by: umairrahman
7 Replies

5. Solaris

Changing root group to group from other

Does any one know if changing root's group from “other” to “root” will cause any problems on a running system. Thanks (4 Replies)
Discussion started by: mjkroner
4 Replies

6. UNIX for Dummies Questions & Answers

How to give Admin rights to a group

Hi can some one help me in giving a group Administrative rights in Linux. So that who ever is added to that group has the rights equal to the Admin. (1 Reply)
Discussion started by: vamsi_mantena
1 Replies

7. Shell Programming and Scripting

Changing userID and Changing group and GID

Hello, I want to write a ksh script about changing UID and changing group with GID. There are multiple servers i want to perform that job. linux1 linux2 linux3 linux4 linux5 ...... . . . . . 1.) How can i enter "password" in script rather asking me? I was trying this... ssh... (2 Replies)
Discussion started by: deal732
2 Replies

8. HP-UX

User rights

I wan to create a user e.g. Tom. whenever a file is created by user Tom or FTP is done using user as Tom, the rights on the file should be 777 (by default). how can I achieve this. Please help. Its very urgent. (1 Reply)
Discussion started by: sharmavr
1 Replies

9. UNIX for Dummies Questions & Answers

Giving rights to User

Hi all, what does the following lines means? chown -R root:mysql /usr/local/mysql chown -R mysql:mysql /usr/local/mysql/data Something giving rights to user named mysql? or related with root rights? Please explain in detail. Thanks. (1 Reply)
Discussion started by: vbs
1 Replies
Login or Register to Ask a Question