LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 03-16-2004, 02:35 PM   #1
robertn
Member
 
Registered: Mar 2004
Location: mid-atlantic
Distribution: mandrake 9.1 rc2
Posts: 43

Rep: Reputation: 15
Unhappy Changes in Control Center not saved


Dual booting Win98SE and Mandrake 9.1 on a PII 350 MHz machine with kernel version 2.4+.........i686;

On install, I accepted an automatic login as user to the KDE desktop environment. I am not afraid of the command line, however and have been hanging out in the Security section the last couple days as I have just convinced my ISA internal modem to connect to the INTERNET via KPPP and Mozilla and want to harden my system against attack. They have some real Sys Admins in there who got me lined up on how to check my exposed ports and so on and now I want to close down some automatic services running on boot.

Here is where the problem begins: I clic on Control Center and am asked for my root password and am offered Control Center's screen. I have tried use the Firewall configuring tool in Security and there seems to be no way to save the changes and indeed they are not even saved for the present session even no matter what I do. There seems to be button or drop down item to clic on to save changes.

A similar situation exists when I try to use the SysV-Admin configuration tool which has a real nice GUI showing all the services running on at run levels 0 through 6 with little "traffic signal" devices with a red or green showing if the service is running or stopped. Once again, I am asked for my root password in order to access this tool and I enter successfully. There is an interactive menu that lets you select a service for stopping or starting and at some time in the past, I have stopped one or two as I can see. But now, when I use the menu, it gives a pop-up informing me the KDEInit cannot open KWrite and what it amounts to is a refusal of permission.

Please do not tell me to just go to the command line for an intensive configuration here as I am trying to make the GUI work as advertised prior to posting a review and also wish to show some younger family members how to set up Mandrake etc. Of course, I am not here refusing to use the command line to fix the GUI problem.
Any tips appreciated robertn
 
Old 03-16-2004, 02:38 PM   #2
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
I've noticed that Mandrake does this to me for small things like file types, window sizes, loading programs, etc...

What I found out was that you make your changes, then LOG OFF. Do not shut down or reboot. Log Off, log back in, and see if your settings are saved.

It's kind of annoying, but for some reason logging off saves my settings.
 
Old 03-17-2004, 01:27 PM   #3
robertn
Member
 
Registered: Mar 2004
Location: mid-atlantic
Distribution: mandrake 9.1 rc2
Posts: 43

Original Poster
Rep: Reputation: 15
Thumbs up

thanks Micro420 ; I will try this and report back as time permits

robertn
 
Old 03-17-2004, 01:46 PM   #4
Fshrink
LQ Newbie
 
Registered: Feb 2004
Location: Wyoming
Distribution: Mandrake 9.2
Posts: 11

Rep: Reputation: 0
Same here

And I wonder whether the popup that says something like "Changes will take effect after you logged off" is not to be taken very literally...
 
Old 03-17-2004, 04:28 PM   #5
robertn
Member
 
Registered: Mar 2004
Location: mid-atlantic
Distribution: mandrake 9.1 rc2
Posts: 43

Original Poster
Rep: Reputation: 15
OK Micro420,
I gave it a long go using your suggestion; I unchecked the portmap service (check means start at startup) and tried all variations possible of logging off (not rebooting or shutting down) and logging back in,to wit:

1) leave the control panel window right where it is after unchecking portmap; what happens is that when I get back to KDE, there is a window demanding my root password to enter the Control Center which is of course asking to be opened. I provide it and notice that portmap is rechecked to run on startup.

2)Clic the OK button and leave the Control Center where it is to log off and log back on. Same result as in 1)

3) Clic OK and then close (or quit) the Control panel and then log off and log back on. No changes saved, but the Control Panel had to be accessed by providing password in order to find this out, since I quit it before logging off/on.

I also tried opening up a console and changing to root via the su command and entering the password and as root entering "drakconf" which does some probing and then gives the Control Panel GUI; results are the same, that is, nothing is saved after I close the console and log off/log back on.

Regarding Fishrink's comment, I get no message about changes being saved after logoff. The Control Center will not hold the changes even inside one session, i. e., I make changes to services as above and then clic to go to another tab in Control Center, say Security and it gives a messages that "changes in current session won't be saved" which is a little like wapping me in the face with a dead fish after what I have been doing

I am noticing that a service called "prelude" is not exiting properly and won't be killed on exiting; I am going to remove it from init.d. I think I installed when I was trying to make the modem work and was clicing on anything that said internet connect but am not sure. The only other way to stop services that I can see is to physically remove them from init.d or comment them out in init.d.

Stopping here for now; any further advice /comments welcomed

thank you robertn

Last edited by robertn; 03-17-2004 at 04:30 PM.
 
Old 03-18-2004, 02:27 PM   #6
robertn
Member
 
Registered: Mar 2004
Location: mid-atlantic
Distribution: mandrake 9.1 rc2
Posts: 43

Original Poster
Rep: Reputation: 15
On this day, I am eating some humble pie and claiming to have solved the problems that started this thread:

quoting myself:
Here is where the problem begins: I clic on Control Center and am asked for my root password and am offered Control Center's screen. I have tried use the Firewall configuring tool in Security and there seems to be no way to save the changes and indeed they are not even saved for the present session even no matter what I do. There seems to be button or drop down item to clic on to save changes.

After days of playing with this, I must have finally clicked the correct sequence to get a system generated prompt that the service (Shorewall, the firewall, apparently) was not loaded and would I like to do so. I clicked OK and was prompted to put CDROM 1 in the bay which I did and bing bang boom. I now apparently have Shorewall as when I shutdown, I saw that it was shutting down and presumably will auto startup on next boot For other newbies reading this, let me reiterate that Mandrake Control Center was all set up in the KDE desktop showing a Security tab and everything as if the firewall option were available. This can lead you to assume that it was loaded. Make sure by the appropriate rpm command or going to install/uninstall software GUI interface and enter Shorewall in the search line to see if you are installed. Otherwise you wll look like me in this emoticon


Quoting me again in original thread start:


similar situation exists when I try to use the SysV-Admin configuration tool which has a real nice GUI showing all the services running on at run levels 0 through 6 with little "traffic signal" devices with a red or green showing if the service is running or stopped. Once again, I am asked for my root password in order to access this tool and I enter successfully. There is an interactive menu that lets you select a service for stopping or starting and at some time in the past, I have stopped one or two as I can see. But now, when I use the menu, it gives a pop-up informing me the KDEInit cannot open KWrite and what it amounts to is a refusal of permission.

Apparently, I completely missed studying the Menu line here ; there is an options or somesuch drop down that lets you check/uncheck toolbar or something and right there before one's eyes is a "save configuration" icon that looks like a floppy disk; if you clic it gives a little warning about starting/stopping services configuration changes possibly locking your system and then if one is bold, one just saves and it is real neat watching the run levels reset themselves. I was just editing runlevel 5 which is my normal log on run level and all changes that I made were saved.

I did get ahead of myself by failing to say that the changes are made by dragging and dropping the little stop/go traffic signals from the start to the stop window or vice versa. If you have things configured, there is a listing of available services on the far left from which you can presumably add services to run levels as desired. Caution advised, of course. This is fairly intuitive and again, I can't believe that I missed it, although the help manual referenced in the Help menu drop down "SysV-Init help" was not loaded on my system and what was in KDE was bare bones with no reference to dragging and dropping, etc.

I hope that I have made up for my "newbie-ness" in this followup post


Now I am going back to the Security Forum and continue trying to harden my system against attack while on the web; this was my original motivation in trying to use the tools discussed above.

robertn
 
Old 03-19-2004, 12:02 AM   #7
robertn
Member
 
Registered: Mar 2004
Location: mid-atlantic
Distribution: mandrake 9.1 rc2
Posts: 43

Original Poster
Rep: Reputation: 15
Cool Continuing the adventure

Here I am again, replying to my own thread. After, confirming that my Shorewall had loaded automatically, I tried to venture out on the web. Mozilla would not find the google search engine and surfing was impossible. Also the Mozilla Messenger just looped as it tried to "resolve " the ISP mail connection. If I went to the Control Center and turned off the firewall entirely, then I was able to access google and mail seemed to "resolve" although I did not see my inbox contents which I know is there because I just looked at them in Outlook Express on my dual boot setup.

I did note that the procedure suggested by Micro420 is the method that I had to use to switch from firewall to "all ports available". So now I ask for help from this point. The firewall is either protecting me so much that I cannot access the web or it is totally down and no protection. Anybody want to coach me from here?

Thanks in advance robertn
 
Old 03-20-2004, 08:22 PM   #8
robertn
Member
 
Registered: Mar 2004
Location: mid-atlantic
Distribution: mandrake 9.1 rc2
Posts: 43

Original Poster
Rep: Reputation: 15
Cool update

Pursuing security still is the goal and having spent more time in the Security forum and reading similar problems as above, I copied a basic "iptables" script named it rc.firewall with 755 permissions and placed it to /etc/rc.d/rc.firewall*

Next, i opened the file /etc/rc.d/rc.local in a text editorand added the text "/etc/rc.d/rc.firewall" (without quotes) on a new line at the end of the file and saved the file.

Then I went to MCC and set the firewall to "no firewall" settings. (so as not to conflict/overide what I was doing with the command. Remember, the GUI firewall is stuck at either "no firewall" or "no internet access as of now--I never resolved why this is so but read others complaining of the same


I also had made some changes to system startup services using the GUI SYSV-Init tool and so with all this done, I rebooted and lo and behold was able to go on the web and accessed one of the port testing services (Sygate), and it looks as if my efforts were rewarded with many ports "stealthed"--dropping probe packets and showing me with two open ports 6000 for X11 and 631 for CUPS.

Then I came back to Security Forum and learned to set add -nolisten tcp to the Xserver file so that port 6000 would not respond to probes. I rebooted and used "nmap -vv localhost" and sure enough, I was now only showing the CUPS port 631 as being of interest.

The only problem is now when I try to go out on the WWW, I am trapped inside my connection just like the situation when using the GUI firewall (still set to "no firewall" for this experiment)

Anybody want to comment?

thanks robertn
 
Old 03-26-2004, 03:45 PM   #9
robertn
Member
 
Registered: Mar 2004
Location: mid-atlantic
Distribution: mandrake 9.1 rc2
Posts: 43

Original Poster
Rep: Reputation: 15
following up:

as root, "drakconf" from the command line will give one the Control Center GUI and perhaps more control over saving changes. As to the original problem that drove me to control center (the Security tab and the Shorewall interface), let me say that what I did was remove shorewall from boot up but not from the system as it contains the iptables programs that can be accessed from the command line and which are necessary for any firewall to be possible.

Then I went to a HOWTO named Security Quick-Start HOWTO for Linux v.1.2, 2002-07-21 that accompanies the Shorewall/Iptables. I accessed these by going to the "install/remove programs" feature of "rpmdrake" at the command line or wherever at the GUI and searched for Shorewall and then allowed the rpmdrake to install it (about 2 MB) Make sure you get the documentation that goes with Shorewall.

It was in this HOWTO that I found an example of an IPTABLES script that I copied wholesale to a file named /etc/rc.d/rc.firewall. I executed "chmod 755 /etc/rc.d/rc.firewall" without quotes to make it executable. I tested it by entering "/etc/rc.d/rc.firewall" at the command line as root and then exited root. Going on the internet, I went to the Sygate port scan site and it showed all my ports blocked which is the way I wanted it for desktop websurfing. If you like the firewall, then you can add a line at the bottom of the /etc/rc.d/rc.local file "#/etc/rc.d/rc.firewall" without the quotes or the comment symbol #. This will automatically load the firewall at each boot-up. If you don't do this, you will have to remember to execute "/etc/rc.d/rc.firewall" each time you access the internet or be unprotected.

There are other #commented features available if one wishes to allow pings or access ftp routes and so on.

So all is well that ends well and I consider this thread closed

robertn
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get control center to load DiSGuiZ Linux - Newbie 6 04-01-2005 12:44 PM
help with control center MulletProof Fedora 0 04-14-2004 02:08 PM
control center in redhat 9 dominant Linux - Newbie 0 02-21-2004 12:17 PM
Can't launch redhat-network-control after updating gnome-control-center fedetxf Red Hat 0 12-12-2003 07:12 AM
Deleting Control-Center Fathonkey Linux - General 0 05-20-2003 07:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration