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 174b1af658 Add client chapter 31 6 years ago
..
src Improve finger daemon 6 years ago
LICENSE Complete chapter 31 6 years ago
README.md Complete chapter 31 6 years ago
Setup.hs Complete chapter 31 6 years ago
finger.db Improve finger daemon 6 years ago
fingerd.cabal Improve finger daemon 6 years ago
stack.yaml Complete chapter 31 6 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