Releases
Current version
Git/Latestdiff: 1.5.6
Latest Snapshots
Produced after each commit or rebase to new upstream version
GIT
RSBAC source code, can be unstable sometimes
Events
No events planned
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:experiences:telmich [2005/12/31 12:56] – 84.161.100.146 | wiki:experiences:telmich [2006/05/02 13:40] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| * motivated developers | * motivated developers | ||
| * small community (still) | * small community (still) | ||
| + | * still unknown to many people out there | ||
| + | |||
| + | ====== TODO ====== | ||
| + | |||
| + | Things I want to achieve / do with RSBAC: | ||
| + | |||
| + | - Create a new user, who | ||
| + | - may create, delete and modify other users (like a end user compatible user manager) | ||
| + | - Understand and use PM (there is no " | ||
| + | - Create a new user, who can shutdown / reboot the system | ||
| + | - use jails | ||
| + | - use rsbac_mod for apache, as soon as vhosts are supported | ||
| + | - test daemons, check whether they can run with rsbac | ||
| + | - test cinit with RSBAC | ||
| ====== common problems ====== | ====== common problems ====== | ||
| Line 12: | Line 26: | ||
| When you enabled ssh (see below) you may be able to **directly** login as //you// or **root**, but using __su__ | When you enabled ssh (see below) you may be able to **directly** login as //you// or **root**, but using __su__ | ||
| or __sudo__ may fail, because you are normally **not** allowed to setuid (to change) to another user. | or __sudo__ may fail, because you are normally **not** allowed to setuid (to change) to another user. | ||
| + | |||
| + | ===== upgrading your system ===== | ||
| + | |||
| + | When you upgrade your system (especially ssh, login or pam) you may lose complete control | ||
| + | over your system. Like I did some seconds ago: | ||
| + | |||
| + | - I logged in as root | ||
| + | - I typed " | ||
| + | - I went away, shopping for the company | ||
| + | - I came back and wanted to login as " | ||
| + | - The answer was " | ||
| + | |||
| + | What happened? | ||
| + | - The update saw that there are new packages and dist-upgrade installs them | ||
| + | - The dist upgrade replaced /// | ||
| + | - The inode of /bin/login changed | ||
| + | - The old settings for /bin/login vanished | ||
| + | - I am not able to login anymore | ||
| + | - sshd also got replaced, so the connection is reseted by the rsbac host | ||
| + | |||
| + | **How to solve the problem** | ||
| + | - I am right now trying it... | ||
| + | - I rebooted the system | ||
| + | - At the grub prompt I added // | ||
| + | - Now I am able to login as rsbac_400 on the console (at least in theory it still boots) | ||
| + | - And now I can restore the standard settings: | ||
| + | - Allow /bin/login to setuid (use // | ||
| + | - Allow / | ||
| ====== HOWTO ====== | ====== HOWTO ====== | ||
| Line 158: | Line 200: | ||
| ==== configuring apache (http server) ==== | ==== configuring apache (http server) ==== | ||
| [[http:// | [[http:// | ||
| + | |||
| + | |||
| ==== configuring openvpn (vpn server) ==== | ==== configuring openvpn (vpn server) ==== | ||
| Line 356: | Line 400: | ||
| ==== creating a user/group administrator | ==== creating a user/group administrator | ||
| + | |||
| + | ===== dosinux.schottelius.org ===== | ||
| + | |||
| + | ==== configuring apache2 (http server) ==== | ||
| + | |||
| + | - Do apt-get install apache2 before | ||
| + | - See what happens:< | ||
| + | dosinux# / | ||
| + | dosinux# dmesg | ||
| + | 0000001236|rsbac_adf_request(): | ||
| + | prog_file / | ||
| + | NOT_GRANTED by RC ACL | ||
| + | 0000001237|rsbac_adf_request(): | ||
| + | prog_file / | ||
| + | result NOT_GRANTED by RC ACL | ||
| + | 0000001238|rsbac_adf_request(): | ||
| + | apache2, prog_file / | ||
| + | value 33, result NOT_GRANTED by AUTH | ||
| + | 0000001239|rsbac_adf_request(): | ||
| + | apache2, prog_file / | ||
| + | value 33, result NOT_GRANTED by AUTH | ||
| + | 0000001240|rsbac_adf_request(): | ||
| + | apache2, prog_file / | ||
| + | value 33, result NOT_GRANTED by AUTH | ||
| + | 0000001241|rsbac_adf_request(): | ||
| + | apache2, prog_file / | ||
| + | value 33, result NOT_GRANTED by AUTH | ||
| + | 0000001242|rsbac_adf_request(): | ||
| + | apache2, prog_file / | ||
| + | value 33, result NOT_GRANTED by AUTH | ||
| + | </ | ||
| + | - Add the AUTH capability 33 (www-data), use rsbac_400 and rsbac_fd_menu / | ||
| + | - TADA, it runs:< | ||
| + | dosinux# / | ||
| + | dosinux# dmesg | ||
| + | 0000001243|rsbac_adf_request(): | ||
| + | 0000001244|rsbac_adf_request(): | ||
| + | dosinux# ps axu | grep apache2 | ||
| + | root 3693 0.8 0.9 16744 5436 ? Ss | ||
| + | www-data | ||
| + | www-data | ||
| + | www-data | ||
| + | www-data | ||
| + | www-data | ||
| + | root 3701 0.0 0.0 | ||
| + | </ | ||
| + | |||
| + | ===== Roles ===== | ||
| + | |||
| + | Roles should make life easier, currently they are just making my life more complicated. Let's see what we can do with them. | ||
| + | |||
| + | ==== creating a " | ||
| + | |||
| + | The first problem to solve with Roles is to create a user, which is able to | ||
| + | - create | ||
| + | - delete | ||
| + | - and modify other users (like a end user compatible user manager) | ||
| + | |||
| + | |||
| + | First of all, I create a user: | ||
| + | - login as rsbac_400, do < | ||
| + | - now do < | ||
| + | - login as root and do< | ||
| + | mkdir / | ||
| + | chown user_manager ~user_manager</ | ||
| + | - Now we successfully created a normal user. | ||
| + | - TOBEDONE... | ||
| ===== Backup ===== | ===== Backup ===== | ||