X and Fluxbox :: starting fluxbox without icons on desktop



Quote (mikshaw @ Aug. 01 2005,09:35)
Quickest and easiest way is to remove the "enhance" line in $HOME/.xinitrc.  This will prevent the dockapps AND icons from loading.
If you want to keep the icons, replace this line with "xtdesk &>/dev/null &".
If you want to keep the other dockapps, add a command for each.  

EDIT:  I see now this is all covered in this very thread.  Beyond that, what more are you looking for?  The mounting is done with mount.app.  The other docakapps are listed in /usr/bin/enhance.

Thanks again,

I've tried to remove the enhance line in .Xinitrc. It works fine but the user still can use the DSL--Desktop--Full Enhanced Desktop to resume the "tools windows" and use that windows to mount the HD...

I'm thinking may be the best way is to restrict the user right of mounting. But since I'm completely new in Linux, I don't know how to restrict user right...

Remove "user" from the 4th column of /etc/fstab, for any device which you do not want the non-root user(s) to mount.  However, user dsl still has power to use "sudo mount" without a password.  You'll need to run the command "visudo" as root in order to edit the sudoers file, which means learning a little about vim, and a little about sudoers.

You could also remove or change permissions on mount.app (I think it's in /usr/X11R6/bin).  If you made it executable only by owner, normal users wouldn't be able to run it.
This is only a cosmetic fix, though.  Any user can still open a terminal and type commands.

DSL really isn't a great ball of security from local users...I don't believe it was ever intended to be that.  You can make it as secure as you want it, but it's going to take a lot of work for anyone who is new to Linux.

Quote (mikshaw @ Aug. 01 2005,23:20)
Remove "user" from the 4th column of /etc/fstab, for any device which you do not want the non-root user(s) to mount.  However, user dsl still has power to use "sudo mount" without a password.  You'll need to run the command "visudo" as root in order to edit the sudoers file, which means learning a little about vim, and a little about sudoers.

You could also remove or change permissions on mount.app (I think it's in /usr/X11R6/bin).  If you made it executable only by owner, normal users wouldn't be able to run it.
This is only a cosmetic fix, though.  Any user can still open a terminal and type commands.

DSL really isn't a great ball of security from local users...I don't believe it was ever intended to be that.  You can make it as secure as you want it, but it's going to take a lot of work for anyone who is new to Linux.

when I tried to run the visudo command, I got the following error message:
visudo: no editor found (editor path= /usr/bin/editor)

What does it mean? Does it mean that the editor program is not installed in my system?

So you mean that I have to learn how to use the visudo command (as root) to edit the sudoers file in order to restrict the user of mounting HD? Am I correct?

Thanks again...

I've open the /etc/sudoers file with beaver editor (I don't know how to use the visudo yet!) and saw the following contains:

#sudoers file.

Cmnd_Alias    SHUTDOWN=/sbin/shutdown
Cmnd_Alias    HALT=/sbin/halt
Cmnd_Alias    REBOOT=/sbin/reboot

root    ALL=(ALL) ALL
dsl ALL=NOPASSWD: SHUTDOWN,HALT,REBOOT


So, do I need to modify the contain inside? How?

Thanks in advance...

From what I understand, you should not edit sudoers as a regular text file.  I don't know why, but then I never bothered to find out.  You might be able to link beaver to /usr/bin/editor (ln -s /path/to/beaver /usr/bin/editor), but I've never tried visudo with a gui editor.

I've edited sudoers only a couple of times, and needed to have the manpage next to me while doing it, so I can't say exactly what to do. You'll probably want to get rid of the NOPASSWD part though.
http://www.die.net/doc/linux/man/man5/sudoers.5.html

Next Page...
original here.