10-20-2008
Quote:
Originally Posted by
Annihilannic
Perhaps it would be better to give them a valid shell and create a root-owned .profile in their home directory which just exits.
Actually, that's not very good advice because they will presumably own their home directory, which means they can remove that
.profile if they have a clue.
Perhaps better to add some code to
/etc/profile to exit if that user logs in... or maybe you can use PAM to do it...
10 More Discussions You Might Find Interesting
1. Programming
Hi people!
As you can read in the subject, I have a project at the University that requires me to realize a ftp-like through the sockets, in C. This is what I've been told so far, and since I'm studying Unix now for the first time I have little idea of where to start.
Does anybody know of a... (1 Reply)
Discussion started by: OpSys
1 Replies
2. UNIX for Dummies Questions & Answers
In my system , the user can use ftp to access the system , how to restrict the user can only access a specific path eg . user's home directory & /tmp ? thx (3 Replies)
Discussion started by: ust
3 Replies
3. Solaris
I am using shell script to do secure ftp. I have done key file setup to do password less authentication. Following are the FTP Details:
FTP Client has Sun SSH.
FTP Server has F-Secure.
I am using SCP Command to do secure copy files. When I am doing this, I am getting the foll error
scp:... (2 Replies)
Discussion started by: ftpguy
2 Replies
4. HP-UX
UNIX Xperts,
Is there a way i can find out who is currently ftping into my server?
The problem I am facing is that there is currently a ftp process running which is trying to login using the wrong password. And this is causing me to constantly have to reset the password /enable the account by... (1 Reply)
Discussion started by: simshark
1 Replies
5. Shell Programming and Scripting
Hi Experts...
Greetings for the day..!
I just want to FTP the files to mainframe system..
my code is not working..and also i need to put the files in a particular directory in a specific naming format...
ftp -i -n ${HOST_NAME} << END_FTP
user ${USER_NAME} ${PASSWORD}
put ${FILE_NAME}... (3 Replies)
Discussion started by: spkandy
3 Replies
6. OS X (Apple)
Hey, I'm trying to establish a connection to FTP in carbon using the system() function, but I'm not sure how to supply my FTP password in the same command.
For example, I have:
system("ftp myusername@mydomain.net");
It then obviously prompts for the password, so I tried this (below)... (0 Replies)
Discussion started by: lectersmeal
0 Replies
7. Solaris
Hello everybody,
In Solaris 10, how I can create an user with only access ftp to directory specify ?
thanks, (2 Replies)
Discussion started by: aav1307
2 Replies
8. AIX
Hello AIXians,
I created a user 'test'
its home directory is: /home/ari/test
I tried to login by ftp using this account, but it failed!
The FTP service is enabled, and the user 'test' is not added to the /etc/ftpusers file. (3 Replies)
Discussion started by: Mohannad
3 Replies
9. UNIX for Beginners Questions & Answers
Dear team , thanks for your support. I am trying to not to duplicate a thread if one is already there for what I am looking, which I am not able to figure out. Is it OK if I post the post the following question in new thread.
--- What follows was in blue.. we are to avoid using colours as we want... (4 Replies)
Discussion started by: ar103081
4 Replies
10. UNIX for Beginners Questions & Answers
Hello,
I have a legacy system that is running on SCO OpenServer 5.0.6, and the hardware is becoming a little sketchy. I replaced the hard drive about a year ago, and was able to come back from a tape backup of my entire system. I have been successful with building a VM with VMware Workstation,... (42 Replies)
Discussion started by: spock9458
42 Replies
LEARN ABOUT DEBIAN
muttprofile
MUTTPROFILE(1) User Contributed Perl Documentation MUTTPROFILE(1)
NAME
muttprofile - Choose a Mutt Profile
SYNOPSIS
muttprofile [-a|--active string] [-d|--dir directory] [-h|--help] [-p|--profile regexp] [-v|--view] [-V|--Version] [profile]
DESCRIPTION
muttprofile is a simple utility to choose a profile to be used with Mutt email-client. It has two operating modes: command-line and inter-
active. Muttprofile goes to interactive mode if no command-line arguments are present or option -v|--view is present without profile name.
Muttprofile looks for profile files in the Mutt directory, opens them and looks for NAME and DESC definitions. It then creates a symbolic
link to the profile chosen by the user. The rest of the work is done with a Mutt macro.
USAGE
Interactive mode:
Type the name of the profile and the program creates a symlink to load the profile. Press <tab> to complete, <ctrl-d> to see list of
choices.
Command-line options:
-a | --active Set the name for active profile symlink, default is profile.active
-d | --dir Set the Mutt directory, default is ~/.mutt
-h | --help prints a short help and exits
-p | --profile (Perl) Regexp to match profile files in Mutt directory
-v | --view Instead of creating a symlink, view profile contents
-V | --version prints the version information and exits (use --version for long and -V for short version)
profile if profile exits, create the symlink to load it from Mutt, otherwise exit with error
INSTALL
Muttprofile requires no installation, but you might have to check the first line of the file ("#!/usr/bin/perl -w") and change the path to
perl if needed ('which perl' might be useful here :-)
SETTING UP PROFILES
Muttprofile checks the profile files for the following information:
# NAME: name for your profile
# DESC: description of your profile
This information is used for choosing and displaying available profiles. DESC is optional, but if NAME is missing, filename is used
instead.
USING MUTTPROFILE FROM MUTT
Perhaps the easiest way to invoke muttprofile from mutt is to bind a key with mutt macro command. For example, adding this to your mut-
trc-file
macro index <F10> "!muttprofile
:source ~/.mutt/profile.active
m" "New message with profile"
binds the function key <F10> to start muttprofile, load the profile and start a new message
EXIT CODES
The default exit codes for muttprofile are:
0 OK
1 PROFILE ALREADY ACTIVE
2 ERROR
These codes can be used in shell scripts etc.
FURTHER INFORMATION
Discussion of profiles with Mutt: http://www.iki.fi/martti.rahkila/mutt/
Mutt home page: http://www.mutt.org
MODULES
muttprofile uses the perl modules "Term::Complete" and "Getopt::Long" that both come with the Perl distribution.
LICENCE
muttprofile is distibuted under GNU General Public Licence (GPL), same as Mutt. For details, see http://www.gnu.org/copyleft/gpl.html
BUGS
None known so far. Inevitably to appear sooner or later.
VERSION
1.0.0 (current)
First public release.
2000-05-10 Martti Rahkila
AUTHOR
Martti Rahkila
martti.rahkila@iki.fi
http://www.iki.fi/martti.rahkila/mutt
SEE ALSO
mutt(1), perl(1)
perl v5.8.0 2003-01-15 MUTTPROFILE(1)