You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Gaël Depreeuw
fbf6a0af61
|
7 years ago | |
---|---|---|
.. | ||
lib | 7 years ago | |
src | 7 years ago | |
LICENSE | 7 years ago | |
README.md | 7 years ago | |
Setup.hs | 7 years ago | |
finger.db | 7 years ago | |
fingerd.cabal | 7 years ago | |
stack.yaml | 7 years ago | |
user.json | 7 years ago |
README.md
fingerd
Excercise 1
Add new user:
sudo sqlite3 finger.db
> insert into users values(Null, 'foo', '/bin/sh', '/home/foo', 'Foo Bar', '1234');
> select * from users;
1|gdp|/bin/sh|/home/gdp|Gaël Depreeuw|555-123-4567
2|foo|/bin/sh|/home/foo|Foo Bar|1234
Update existing user:
sudo sqlite3 finger.db
> update users set phone='n/a' where id=1
> select * from users;
1|gdp|/bin/sh|/home/gdp|Gaël Depreeuw|n/a
2|foo|/bin/sh|/home/foo|Foo Bar|1234
Excercise 2
see src/AddUser.hs