LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 07-18-2002, 08:00 AM   #1
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
How to give a valid shell to an existing user?


I set up a mail filter and would like to call it via the .forward file.
For some users I get an error message like this:
...user cannot communicate with programs since it does not have a valid shell...
I would like to give them one. Are there any security risks of doing so?
And how to do it?
 
Old 07-18-2002, 11:56 AM   #2
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
which users?
 
Old 07-18-2002, 12:56 PM   #3
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
I figured it out:
it is chpass -s /path/to/shell
or something like that.
I tried it and works: the shell I specified was /usr/bin/passwd.
However, a man who is supposed to be our system administrator
told me not to do that since these users can receive mails from the
outside world, and it is a security risk if they have a valid shell, too.
I wonder why as he himself prepared 10 users who receive mail
from the outside and had a valid shell, too. I planned to prepare the
remaining 4, who have the majority of mails. If I could filter the mails
of those four, too, the e-mail virus threat would reduced to (almost) zero.
What is your opinion about the risk of valid shell for users receiving
mail from the outside? Is it actually a risk?
 
Old 07-18-2002, 03:56 PM   #4
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
I'm not sure I understand exactly what you want to do.

I assume these are real live people logging into accounts

I don't know what mail server you're running

Is the Mailserver on the same box as the users /home/mboxes?

If the user has no root priveleges then can an infected email harm more than his directory?
 
Old 07-18-2002, 08:12 PM   #5
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
> I assume these are real live people logging into accounts
Yes. They have windows client machines, who connect to the FreeBSD server using samba. The shells of most of them are limited to /usr/bin/passwd, and some of them do not even have a valid shell on their business username (but all have a valid shell on their personal username).

> I don't know what mail server you're running
Sendmail + mail (for filtering purposes I replaced mail with procmail for some users via .forward files in their home directories)

> Is the Mailserver on the same box as the users /home/mboxes?
Yes. The mailboxes are on the FreeBSD server, to which they connect using Outlook.

> If the user has no root priveleges then can an infected email harm more than his directory?
Yes, it can destroy their Windows machines and all available shares on the FreeBSD server.

My latest findings:
Procmail and the e-mail sanitizer work when a user has /usr/bin/passwd as his shell.
Formail, however, does not work unless the user's shell is /usr/local/bin/bash.
What is the reason?

Last edited by J_Szucs; 07-19-2002 at 04:58 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail Unknown user (has a valid domain) Nico Linux - Newbie 4 02-19-2007 09:59 AM
Adding new group to existing user ALF Linux - Software 7 05-08-2006 09:35 PM
How do I give a user a shell of /bin/bash2? bwoodwar Linux - Networking 2 09-12-2005 11:42 AM
Using WS-FTP, valid user can't go into folders they create krzykard Linux - Networking 0 02-03-2004 11:00 AM
Thru WS-FTP, valid user can't go into folders they create krzykard Linux - Software 2 11-12-2003 05:44 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 02:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration