Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]tlug: More about Configuration Files
- To: tlug@example.com
- Subject: tlug: More about Configuration Files
- From: "Stephen J. Turnbull" <turnbull@example.com>
- Date: Fri, 11 Sep 1998 19:54:40 +0900 (JST)
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=us-ascii
- In-Reply-To: <35F8F37B.192708B8@example.com>
- References: <199809070559.PAA22753@example.com><35F3AC15.D9F60243@example.com><13811.45912.776540.461978@example.com><35F8F37B.192708B8@example.com>
- Reply-To: tlug@example.com
- Sender: owner-tlug@example.com
>>>>> "Dave" == Dave <dave@example.com> writes: Dave> On the advice i got here, i've succesfully configured my Dave> .bashrc file to hold all the aliases that i like to have Dave> around. However, i'm still not getting the computer to start Dave> up certain programs when i log in. At first i put them in my Dave> .bash_profile, but that caused chaos to ensue. THen, on the Noooo! "Stop doing that." :-) Dave> advice of a guy from the #Linux channel on IRC, i made a Dave> .xsession file and put the programs in there. This had Dave> absolutely no effect whatsoever, and this is where I am now Dave> stuck. So where DO i put the commands to start programs when Dave> i log in? All praise RedHat and Pacific High Tech! All praise MIT! All praise the mysterious and magical X initialization process! (Debian docs, Linux rocks!) How do you start X? If it's from the command line, do "less `which <command to start X>`" and start tracing through the files mentioned in the script. Otherwise, first try `ln -s ~/.xsession ~/.xinitrc'. This isn't strictly speaking correct, but it might work. Look for `~/.window-manager-rc' (whatever your window manager is). Most of them allow starting programs; this may or may not work right for you. But it probably will. If all else fails, look first to see if /etc/X11 exists and read everything readable in that directory and subdirectories; one of them will be the real initialization script. Next try /usr/X11R6/lib/X11 and its subdirectories. Dave> One other semi-related question: I would like to have an Dave> nxterm which starts up when i log in, and automatically goes Dave> into superuser mode, so it's ready and waiting for me when i Dave> (inevitably) need to do something as root. At my current Leaving an su term lying around isn't a good idea, for the same reasons using root as your regular user isn't a good idea. (I do it anyway....) Do make sure the prompt is visually differentiated and tells you where you're logged in. Dave> level of understanding, this might not be feasable since i Dave> would have to include the supersuer password in some file, Dave> and that would either be a huge breach of security, or Dave> simply not technically possible. ANy ideas on this? If you're really concerned about security, I would strongly suggest a bit of "gaman" and a lot of reorganizing your life so that things you need to do a lot are in user space (eg, non-critical config files could be owner you or group you for almost all programs). As an exercise: Put a script to do the job in a file on a floppy and wrap the command to execute it (in your home directory) in if [ -x /mnt/floppy/run-a-su-nxterm ]; then /mnt/floppy/run-a-su-nxterm fi If your box is physically secure (ie, you always lock the console when away from your desk) but on a network, you can use a program like super to run the nxterm as root, but only for your user and only when logged in on a specific device, like the console or via xdm. If you have a lot of such things that you might do on several systems, you can handle them entering the password only once by using ssh and sshagent. But your box itself had better be physically secure in the above sense. -- University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN Institute of Policy and Planning Sciences Tel/fax: +1 (298) 53-5091 -------------------------------------------------------------- Next Nomikai: 18 September, 19:30 Tengu TokyoEkiMae 03-3275-3691 Next Meeting: 10 October, Tokyo Station Yaesu central gate 12:30 -------------------------------------------------------------- Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp
- References:
- tlug: iso-2022-cjk-unix (Was: Solution, etc. etc.)
- From: jwb@example.com (Jim Breen)
- tlug: Configuration Files
- From: Dave <dave@example.com>
- tlug: Configuration Files
- From: "Stephen J. Turnbull" <turnbull@example.com>
- tlug: More about Configuration Files
- From: Dave <dave@example.com>
Home | Main Index | Thread Index
- Prev by Date: tlug: e-mail software recomendations
- Next by Date: RE: tlug: More about Configuration Files
- Prev by thread: tlug: More about Configuration Files
- Next by thread: RE: tlug: More about Configuration Files
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links