>    I've no concerns about the user modifying the script; she has
> insufficient reason and knowledge to do so.

In that case just give her full root access through sudo.


>    What I would prefer is to put the cp command in her ~/.bash_logout file.

The goal of your changes seems really *odd*, to put it lightly.
Changing a system-wide DNS configuration when a single user logs out.
Is your intent to restore the DNS configuration when she is no longer
using the system?  Why not put it in the system shutdown scripts then?
Or better yet, in the system start up scripts (to be overwritten only
when DHCP client is used).  There are probably several other better
options than messing with .bash_logout. If we had a full understanding
what you're trying to accomplish, we might be able to help with that.


> > As for debugging your sudo config, have you looked at your system logs to
> > see if sudo is complaining about anything?  Are you using visudo to edit
> > the file?  I think it's best to use that instead of editing it directly.
> 
>    From everything I've read (since I don't use sudo on the machines on which
> I work), the only reason for the file saying to use visudo is to protect us
> from ourselves. One can put 'Default editor=/usr/bin/<editor_name>' as the
> first line in /etc/sudoers and happily use whatever editor you wish. I
> initially needed to edit /etc/sudoers with a line found on a Web forum to
> allow her to be able to shut down the machine (or reboot) when logging out
> of Xfce4. I used joe for that edit; sudo is happy.

Yes, the idea is to prevent you from entering incorrect syntax or
making any number of other mistakes while editing the file.  Someone
else suggested you may have messed up the syntax, so maybe this would
help you.

BTW, if you have a preferred text-mode editor, you should add
something like this to your .bashrc:

export EDITOR=myfavoriteeditor


Then commands like visudo, vipw, svn commit, ... (list goes on) ...
will use that editor by default.

tim
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to