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 Complete chapter 31 7 years ago
..
lib Complete chapter 31 7 years ago
src Complete chapter 31 7 years ago
LICENSE Complete chapter 31 7 years ago
README.md Complete chapter 31 7 years ago
Setup.hs Complete chapter 31 7 years ago
finger.db Complete chapter 31 7 years ago
fingerd.cabal Complete chapter 31 7 years ago
stack.yaml Complete chapter 31 7 years ago
user.json Complete chapter 31 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