If the DN of a user changes:
If the DN of a user changes, what does the LFC/DPM admin have to do, so that the user can still access her files ?
Solution:
The steps to follow are:
If the user's new DN doesn't appear in Cns_userinfo
The steps to follow are:
If the user's new DN appears in Cns_userinfo
- If there are files registered for the new DN, we do:
- Get the files and paths from the DB:
SELECT lpad(' ', 2*level-1) || SYS_CONNECT_BY_PATH(name, '**') "Path"
FROM Cns_file_metadata
WHERE owner_uid=<new_owner_uid>
START WITH parent_fileid=0
CONNECT BY PRIOR fileid = parent_fileid;
- And we put all these in a file files.sql that we modify with vim to convert the '*' to '/'. So inside vim we type:
:%s/\*\*/\//g
- Now we set all those files to the owner_uid of the old_DN:
for i in `cat files.sql`; do /opt/lcg/bin/lfc-chown <the_old_owner_uid> $i; done
- Then, we delete from the DB the owner_uid of the new DN:
/opt/lcg/bin/lfc-rmusrmap --uid <new_owner_uid>
- And finally, we modify the user mapping to make the old owner_uid point to the new DN:
/opt/lcg/bin/lfc-modifyusrmap --uid <old_owner_uid> --user '<new_DN>'
- If there are no files registered for the new DN, it's more simple. We just do the two last steps:
If the name of a group/VO changes:
If the name of a group/VO changes, what does the LFC/DPM admin have to do, so that the permissions remain correct ?
Solution:
The steps to follow are:
Help !
If this page doesn't help, contact
helpdesk@ggusNOSPAMPLEASE.org (remove the NONSPAM !).
--
SophieLemaitre - 12 Oct 2007