Skip to content

Commit

Permalink
users script
Browse files Browse the repository at this point in the history
  • Loading branch information
prassaschr committed Sep 22, 2017
1 parent a850f95 commit 09d2a5c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
3 changes: 2 additions & 1 deletion samba/smb.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
log file = /var/log/samba/log.%m
max log size = 1000
log level = 1
syslog = 0
# syslog = 0
logging = 0
panic action = /usr/share/samba/panic-action %d

# Anti-ransomware
Expand Down
10 changes: 6 additions & 4 deletions scripts/users_creation.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ usermod -a -G group1,group2 username
#primary group with -g
#Mikro g kai megalo G kanoun tin diafora

useradd -M -s /sbin/nologin username
passwd username #dineis password
smbpasswd -a username # dineis password, to idio me to parapano
smbpasswd -e username #kanei enable ton user username
# -s Change User Login Shell
# -M without home directory
useradd -M -s /sbin/nologin test1
passwd test1
smbpasswd -a username
smbpasswd -e username
usermod -G groupPublic,groupSecret username


Expand Down
21 changes: 21 additions & 0 deletions scripts/users_data.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
test10:20100:public:secret,pata
test11:20101:secret:public,satas
test12:20102:pata:public
test13:20103:satas:public
test14:20104:public:pata
test15:20105:public:pata
test16:20106:public:pata
test17:20107:public:pata
test18:20108:public:pata
test19:20109:public:pata
test20:20110:public:pata
test21:20111:public:pata
test22:20112:public:pata
test23:20113:public:pata
test24:20114:public:pata
test25:20115:public:pata
test26:20116:public:pata
test27:20117:public:pata
test28:20118:public:pata
test29:20119:public:public,satas
test30:20120:public:public,satas

0 comments on commit 09d2a5c

Please sign in to comment.