root login and moreForum: Other Help Topics Topic: root login and more started by: monica Posted by monica on Jan. 02 2007,02:22
Hello,a few newbie questions. Im working a DSL remaster and want to make the CD boot directly into fluxbox as root, actually getting rid of the dsl user for good. also I want to mount all disks and USB pendrives automatically at boot or, in case of a USB pendrive, if they are connected. anyone can give me a clue? Ciao Monica Posted by mikshaw on Jan. 02 2007,04:44
look at /.bash_profileInstead of the su command in there, try replacing it with "startx". As far as getting rid of user dsl, you will need to make some changes to various parts of the myDSL system if you ever want to install myDSL packages after removing that user. I must strongly suggest you NOT do this, however. Linux systems are generally designed to work quite well as a regular user so root power is recommended only when necessary. I couldn't say precisely what would be needed to automatically mount all devices unless i knew what devices you had. You might try adding "mount -a" (or something similar?) to /opt/bootlocal.sh Posted by monica on Jan. 02 2007,06:41
Hi Mikshaw, thanks for your reply (by the way, I'm posting from my first working beta DSL remaster, aint that cool?) Im gonna try the ./bash_profile modification as you suggested. About the issues you pointed out, maybe further details about my goals are due. This is a school project, a very specialized live CD, totally self contained. As a matter of fact I removed all Debian packaging tools and so on. What I put there is what gonna stay there. So subsequent install or mydsl conflicts are not a problem. However, I have noticed, as you say, that references to the dsl user are scattered all over the system initial configuration. Thats basically my main concern. I tried the mount -a command, to no avail. The idea is to have all the devices found in the linuxrc generated fstab file, mounted at boot. Perhaps some script I can put in bootlocal.sh? Ciao Monica Posted by mikshaw on Jan. 02 2007,14:29
I've never used mount -a myself, but I had suspicions that it wouldn't work without specifying device types.You could maybe do mount -a -t ext2,ext3,reiserfs,msdos,vfat,ntfs to account for the most commonly used file systems. Again, though, I only suggest this because it's what is said in the manual and not something I've done myself. |