irods-admin
This commit is contained in:
parent
1db53eb1a4
commit
42f002a4d8
122
irods-admin
Normal file
122
irods-admin
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
irods-admin:
|
||||||
|
|
||||||
|
[root@test ~]# su - irods
|
||||||
|
Last login: Fri Oct 26 11:59:25 CEST 2018 on pts/0
|
||||||
|
|
||||||
|
-bash-4.2$ iinit
|
||||||
|
Enter your current iRODS password:
|
||||||
|
|
||||||
|
-bash-4.2$ ils
|
||||||
|
/testZone/home/irods:
|
||||||
|
|
||||||
|
-bash-4.2$ ils -A
|
||||||
|
/testZone/home/irods:
|
||||||
|
ACL - irods#testZone:own
|
||||||
|
Inheritance - Disabled
|
||||||
|
|
||||||
|
create user in irods:
|
||||||
|
|
||||||
|
-bash-4.2$ iadmin mkuser g.j.c.strikwerda@rug.nl rodsuser
|
||||||
|
|
||||||
|
set password for user:
|
||||||
|
|
||||||
|
-bash-4.2$ iadmin moduser g.j.c.strikwerda@rug.nl password ir0ds
|
||||||
|
|
||||||
|
check as user:
|
||||||
|
|
||||||
|
[root@test ~]# su - ger
|
||||||
|
|
||||||
|
init your environment:
|
||||||
|
|
||||||
|
[ger@test ~]$ iinit
|
||||||
|
ERROR: environment_properties::capture: missing environment file. should be at [/home/ger/.irods/irods_environment.json]
|
||||||
|
One or more fields in your iRODS environment file (irods_environment.json) are
|
||||||
|
missing; please enter them.
|
||||||
|
Enter the host name (DNS) of the server to connect to: localhost
|
||||||
|
Enter the port number: 1247
|
||||||
|
Enter your irods user name: g.j.c.strikwerda@rug.nl
|
||||||
|
Enter your irods zone: testZone
|
||||||
|
Those values will be added to your environment file (for use by
|
||||||
|
other iCommands) if the login succeeds.
|
||||||
|
|
||||||
|
Enter your current iRODS password:
|
||||||
|
|
||||||
|
check:
|
||||||
|
|
||||||
|
[ger@test ~]$ ils
|
||||||
|
/testZone/home/g.j.c.strikwerda@rug.nl:
|
||||||
|
|
||||||
|
make file:
|
||||||
|
|
||||||
|
[ger@test ~]$ touch ./iets.txt
|
||||||
|
|
||||||
|
put file in irods vault:
|
||||||
|
|
||||||
|
[ger@test ~]$ iput ./iets.txt
|
||||||
|
|
||||||
|
[ger@test ~]$ ils
|
||||||
|
/testZone/home/g.j.c.strikwerda@rug.nl:
|
||||||
|
iets.txt
|
||||||
|
|
||||||
|
[ger@test ~]$ ils -A
|
||||||
|
/testZone/home/g.j.c.strikwerda@rug.nl:
|
||||||
|
ACL - g.j.c.strikwerda@rug.nl#testZone:own
|
||||||
|
Inheritance - Disabled
|
||||||
|
iets.txt
|
||||||
|
ACL - g.j.c.strikwerda@rug.nl#testZone:own
|
||||||
|
|
||||||
|
[ger@test ~]$ ilsresc --tree
|
||||||
|
demoResc:unixfilesystem
|
||||||
|
|
||||||
|
create group:
|
||||||
|
|
||||||
|
-bash-4.2$ iadmin mkgroup users
|
||||||
|
|
||||||
|
make user member to group:
|
||||||
|
|
||||||
|
-bash-4.2$ iadmin atg users g.j.c.strikwerda@rug.nl
|
||||||
|
|
||||||
|
[ger@test ~]$ iuserinfo
|
||||||
|
name: g.j.c.strikwerda@rug.nl
|
||||||
|
id: 10016
|
||||||
|
type: rodsuser
|
||||||
|
zone: testZone
|
||||||
|
info:
|
||||||
|
comment:
|
||||||
|
create time: 01540548708: 2018-10-26.12:11:48
|
||||||
|
modify time: 01540548708: 2018-10-26.12:11:48
|
||||||
|
member of group: g.j.c.strikwerda@rug.nl
|
||||||
|
member of group: public
|
||||||
|
member of group: users
|
||||||
|
|
||||||
|
remove local file and retrieve it from irods:
|
||||||
|
|
||||||
|
[ger@test ~]$ rm iets.txt
|
||||||
|
|
||||||
|
[ger@test ~]$ iget iets.txt
|
||||||
|
|
||||||
|
[ger@test ~]$ ls -l ./iets.txt
|
||||||
|
-rw-r-----. 1 ger ger 0 Oct 26 13:05 ./iets.txt
|
||||||
|
|
||||||
|
[ger@test ~]$ imeta add -d iets.txt beschrijving metadata
|
||||||
|
|
||||||
|
[ger@test ~]$ imeta ls -d iets.txt
|
||||||
|
AVUs defined for dataObj iets.txt:
|
||||||
|
attribute: beschrijving
|
||||||
|
value: metadata
|
||||||
|
units:
|
||||||
|
|
||||||
|
[ger@test ~]$ imeta add -d iets.txt maand november
|
||||||
|
|
||||||
|
[ger@test ~]$ imeta ls -d iets.txt
|
||||||
|
AVUs defined for dataObj iets.txt:
|
||||||
|
attribute: beschrijving
|
||||||
|
value: metadata
|
||||||
|
units:
|
||||||
|
----
|
||||||
|
attribute: maand
|
||||||
|
value: november
|
||||||
|
units:
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user