In sybase, bringing over users, logins, roles across servers is not very well supported, but can be done.
I assume you are loading the DB from one server to another. Basically, you will need all the logins present in the master syslogins otherwise its not going to work obviously. Then, as for roles, you can bcp out the syssrvroles, sysloginroles, sysroles and bcp them in.
and after you load the database run the following
sp_configure 'allow updates', 1
update sysusers set a.suid = b.suid from sysusers a, master..syslogins b
where a.name = b.name
sp_configure 'allow updates', 0
in case the suid in the source and the target are different.
I did bcp in of
bcp master..syslogins in syslogin.out -c -b -Sxxx -Usa
bcp master..sysloginroles in syslogroles.out -c -b -Sxxx -Usa
bcp master..syssrvroles in syssrvroles.out -c -b -Sxxx -Usa
bcp margin.dbo.sysusers in sysuse.out -c -b -Sxxx -Usa
bcp margin.dbo.sysalternates in sysalt.out -c -b -Sxxx -Usa
bcp margin.dbo.sysroles in sysrole.out -c -b -Sxxx -Usa
originally there were 45 users in margin database
After load there were 49 users but when i did bcp in of the above tables, I didnt get 5 users and a group margin_group from the original database. before load.
Only 40 users from the original database are present.