How to enable Firestarter to automatically start when a common user logs on

Source: Internet
Author: User
How to enable Firestarter to automatically start Linux Enterprise Application-Linux server application when logging on as a common user is as follows. Generally, you are prompted to enter the administrator password when you click the Firestarter icon or manually start Firestarter from the terminal. However, this is really annoying, especially when you want to start firestarter every time you log on. Firestarter can automatically load and run in the background when you log on as a normal user, and minimize it to the system tray icon without asking you for a password.

Run Firetarter without the Root password.

To allow common users to run Firetarter, common users must be given additional privileges. Use your favorite editor to edit "/etc/sudoers" and add the following section at the end:

Username ALL = NOPASSWD:/usr/bin/firestarter

Note: Debian users must replace "/usr/bin/firestarter" in the preceding section with "/usr/sbin/firestarter"

Replace "username" with the Common User Logon Name. The user specified above can run Firestarter without being prompted to enter the password or use the command line: sudo firestarter.

Security considerations: This method exchanges local security with ease. If your login account is cracked by an attacker, the attacker will control Firestarter. However this method is preferable to having a shared root user password in a multiuser setting. It is also preferable if the alternative is not to run Firestarter at all.

When logging on, run Firesarter and minimize it to the system tray:

If the above license has been set, the system can continue to set it to automatically run Firetarter when you log on with a normal account. In that case, Firetarter can automatically run to the system tray without user interference. Then, you can click the system tray icon to open the main interface.

Gnome settings:
Open the Gnome "system" menu, select "session" in "Preferences", and switch to the "Startup Program" tab.
Click "add" and enter "sudo firestarter -- start-hidden" as the command to start the program. Click "OK" to end the setting.

You can simply delete the columns you just entered from the table and do not automatically start Firestarter upon logon.

Kde settings:
Open the terminal and execute the following two commands:
Echo-e '#'\! '/Bin/sh \ nsudo firestarter -- start-den'> ~ /. Kde/Autostart/firestarter
Chmod a + x ~ /. Kde/Autostart/firestarter

Now Firestarter can be started with KDE. To terminate KDE startup, delete the following file: "~ /. Kde/Autostart/firestarter ".

Note: The level is limited. E-mail: kongweiguo@gmail.com
The appendix is as follows:
How can I get Firestarter to load automatically when I log in as a regular user?

Normally when you start Firestarter by clicking an icon or manually from a terminal, the system will prompt you for your root user's password. however, this is a bit of a hassystemic, especially if you want to run Firestarter all the time when logged in. in that case Firestarter can be loaded in the background when you log in with your regular user, without asking a password and minimized to the system tray (pictured right ).
Giving the user permission to launch Firestarter without the root password

In order for a regular user to be able to launch Firestarter, the user must be given additional privileges. edit your/etc/sudoers file in your favorite text editor and add the following line at the end:
Username ALL = NOPASSWD:/usr/bin/firestarter

Note: Debian users shoshould replace/usr/bin/firestarter with/usr/sbin/firestarter in the above line.

Simply replace username with whatever your login is. The specified user is now able to launch Firestarter without being prompted for a password using the command sudo firestarter.

A note on the security aspects: This method makes a trade off in local security for convenience. if your user account becomes compromised the attacker will be able to control the firewall. however this method is preferable to having a shared root user password in a multiuser setting. it is also preferable if the alternative is not to run Firestarter at all.
Launching Firestarter minimized to the tray on login

Having completed MED the above configuration of permissions, the system can further be set up to load Firestarter when you log in with your regular user account. firestarter will in that case load directly into the system tray without user intervention, after which the main interface can be accessed by clicking the tray icon.

Using GNOME:
Open up your GNOME menu, select Preferences followed by Sessions. Switch to the Startup programs tab, pictured right.

Click Add and enter
Sudo firestarter -- start-hidden
As the startup command. Click OK and you're done.

To stop Firestarter from loading on login, simply remove its entry from the startup programs listing.

Using KDE:

Open a terminal and execute the following two commands:

Echo-e '#'\! '/Bin/sh \ nsudo firestarter -- start-den'> ~ /. Kde/Autostart/firestarter
Chmod a + x ~ /. Kde/Autostart/firestarter

Firstarter will now load automatically when KDE starts. To stop Firestarter from loading when you log in, remove ~ /. Kde/Autostart/firestarter file. iamif

In the kde environment, you can save the session of the previous session and it will automatically run in the next login. You only need to use the mongodo command to change the user's execution permission.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.