[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vps-mail] SA: Using trim_whitelist in VPS environment



At 9:20 AM +0200 5/9/07, ADNET Ghislain said something about:
Matt Cohen a écrit :
Unfortunately, it has to be run as the user, which for users that don't have shell access, means I have to temporarily give them shell access, su to that user, run the script, then remove the shell access again.

why not use the 'su' command to do that, i think
su -Km <username>  <command>

 would just do what you want without shell access.

That doesn't work for me - if the account doesn't have shell access, they can't use su - I get an "This account is currently not available" error.

Matt
--
:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+
Matthew I. Cohen                                   http://www.iwbyte.com/
It Won't Byte Web Design & Hosting.     Ob. Quote: "Reality is for those
email: lists@xxxxxxxxxx                  people who can't handle Fantasy"

========================================================================
This is <vps-mail@xxxxxxxxxxxxx>  <http://groupmail.org/lists/vps-mail/>
Before posting a question, please search the archives (see above URL).


Main Index | Thread Index
Match: Format: Sort by:
Search: