RW ≤REAL_AMP≥RO target for different IQN
If you want to divide access to target, for example NTFS to read-only and read-write per iqn, you have to set scst like this:
TARGET_DRIVER iscsi {
enabled 1
TARGET iqn.2015-01.cz.test:iscsi.shared {
IncomingUser "test TESTPASS1111"
allowed_portal 192.168.1.108
cpu_mask f
enabled 1
rel_tgt_id 1
GROUP rwgr {
INITIATOR iqn.1991-05.com.microsoft:win7-linux-pc
LUN 0 iscsi_alc_shr
}
GROUP rogr {
INITIATOR iqn.1991-05.com.microsoft:acer-linux
LUN 0 iscsi_alc_shr {
read_only 1
}
}
}
}