How to achieve E-Mail Notification on root login?

2013-02-12 Thread Matthias Petermann


Hello,

given there is a FreeBSD system with users in the wheel group, what is  
the best practise
to send out a notification via E-Mail if one of them becomes root via  
su? In an ideal

case the E-Mail would contain the user name and the time.

I thought about using sudo but this is not in the base system which I  
would prefer.


Kind regards,
Matthias


--
Matthias Petermann matth...@d2ux.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Chmod of /dev/ulptN

2013-02-12 Thread Polytropon
On Mon, 11 Feb 2013 18:33:12 -0800, Ronald F. Guilmette wrote:
 I exactly followed the directions here:
 
   
 http://lists.freebsd.org/pipermail/freebsd-questions/2012-February/238118.html
 
 Nontheless, my /dev/lpt0 node still only has permissions set to 0644.

In the subject you've mentioned /dev/ulpt (USB LPT port), and
now /dev/lpt (conventional LPT port), still the same applies
for both.



 Why?

Because the content of /dev is dynamically generated and maintained
as a virtual file system. This service is controled by devfs (devices
created at startup time) and devd (devices dynamically created during
runtime), both with their respective configuration files devfs.conf
and devfs.rules, and devd.conf. Those files need to be adjusted. To
make the change become active, restart the service.



 What did I do wrong?

You did not use the current proper method. :-)

Make the change you need in /etc/devfs.conf, e. g.

perm ulpt0 0664

if you need rw/rw/r. You can also use own user:group in
a similar way if you need to change file owner or group.
See man devfs.conf for details.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to achieve E-Mail Notification on root login?

2013-02-12 Thread Polytropon
On Tue, 12 Feb 2013 13:24:52 +0100, Matthias Petermann wrote:
 
 Hello,
 
 given there is a FreeBSD system with users in the wheel group, what is  
 the best practise
 to send out a notification via E-Mail if one of them becomes root via  
 su? In an ideal
 case the E-Mail would contain the user name and the time.
 
 I thought about using sudo but this is not in the base system which I  
 would prefer.

I'm not sure if there already is a solution (provided in the
base system) that offers this functionality, but the fact of
a user having used su to su root is logged by the system.
The line is appended to /var/log/messages:

Feb 12 14:40:57 r56 su: poly to root on /dev/pts/2

The information you want is in there, and you could either use
the whole line, or apply some sed, awk or even perl to form a
message with less information (only date and user).

A scripted solution could monitor /var/log/messages for changes
and use the system's builtin mailer to deliver the message. Tools
like tail -f, grep and | mail could be involved. It should
be quite trivial to implement this and add a custom rc.d-style
script (or even few lines in ye olde /etc/rc.local).



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to achieve E-Mail Notification on root login?

2013-02-12 Thread Robert Huff

Polytropon writes:

   given there is a FreeBSD system with users in the wheel group, 
   what is the best practise to send out a notification
   via E-Mail if one of them becomes root via su? In an ideal
   case the E-Mail would contain the user name and the time.
  
  I'm not sure if there already is a solution (provided in the
  base system) that offers this functionality, but the fact of
  a user having used su to su root is logged by the system.
  The line is appended to /var/log/messages:
  
   Feb 12 14:40:57 r56 su: poly to root on /dev/pts/2
  
  The information you want is in there, and you could either use
  the whole line, or apply some sed, awk or even perl to form a
  message with less information (only date and user).
  
  A scripted solution could monitor /var/log/messages for changes
  and use the system's builtin mailer to deliver the message. Tools
  like tail -f, grep and | mail could be involved. It should
  be quite trivial to implement this and add a custom rc.d-style
  script (or even few lines in ye olde /etc/rc.local).

Take a look at the -p option of split.
The bigger question is how quickly do you need to know -
instantly?  once an hour?  once a day?  


Robert Huff

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to achieve E-Mail Notification on root login?

2013-02-12 Thread Frank Staals
Robert Huff roberth...@rcn.com writes:

 Polytropon writes:

   given there is a FreeBSD system with users in the wheel group, 
   what is the best practise to send out a notification
   via E-Mail if one of them becomes root via su? In an ideal
   case the E-Mail would contain the user name and the time.
  
  I'm not sure if there already is a solution (provided in the
  base system) that offers this functionality, but the fact of
  a user having used su to su root is logged by the system.
  The line is appended to /var/log/messages:
  
  Feb 12 14:40:57 r56 su: poly to root on /dev/pts/2
  
  The information you want is in there, and you could either use
  the whole line, or apply some sed, awk or even perl to form a
  message with less information (only date and user).
  
  A scripted solution could monitor /var/log/messages for changes
  and use the system's builtin mailer to deliver the message. Tools
  like tail -f, grep and | mail could be involved. It should
  be quite trivial to implement this and add a custom rc.d-style
  script (or even few lines in ye olde /etc/rc.local).

   Take a look at the -p option of split.
   The bigger question is how quickly do you need to know -
 instantly?  once an hour?  once a day?  


   Robert Huff

I don't think anything other than instantly makes sense. If it would be
a batch thing sent once an hour/day/whatever then an attacker could
simply prevent the mail being sent, and/or remove her entry from the
log. 

Furthermore, one should realize that any setup would only be guaranteed
to report the first breach/login. In other words: after the first notice
that someone logged in as root you can no longer trust that you will get
further notices (assuming that the emails safely arrive once they have
actually left the system in the first place). Unless you can somehow
verify that your notification system/setup was untouched by the person
who logged in (e.g. since you were the one that actually logged in as
root).

Regards, 

-- 

- Frank
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to achieve E-Mail Notification on root login?

2013-02-12 Thread Zyumbilev, Peter
Hi,

Allow sudo bash only.

Modify .bashrc to mail last entry from the log

http://tldp.org/LDP/abs/html/sample-bashrc.html

So you will get alert instantly :-)


Peter



On 12/02/2013 16:31, Robert Huff wrote:
 
 Polytropon writes:
 
   given there is a FreeBSD system with users in the wheel group, 
   what is the best practise to send out a notification
   via E-Mail if one of them becomes root via su? In an ideal
   case the E-Mail would contain the user name and the time.
  
  I'm not sure if there already is a solution (provided in the
  base system) that offers this functionality, but the fact of
  a user having used su to su root is logged by the system.
  The line is appended to /var/log/messages:
  
  Feb 12 14:40:57 r56 su: poly to root on /dev/pts/2
  
  The information you want is in there, and you could either use
  the whole line, or apply some sed, awk or even perl to form a
  message with less information (only date and user).
  
  A scripted solution could monitor /var/log/messages for changes
  and use the system's builtin mailer to deliver the message. Tools
  like tail -f, grep and | mail could be involved. It should
  be quite trivial to implement this and add a custom rc.d-style
  script (or even few lines in ye olde /etc/rc.local).
 
   Take a look at the -p option of split.
   The bigger question is how quickly do you need to know -
 instantly?  once an hour?  once a day?  
 
 
   Robert Huff
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Was I Sourced?

2013-02-12 Thread Tim Daneliuk

Is there a way for script to determine whether is was sourced
or forked off as a subprocess when it was invoked?

I have a script that needs to be sourced to work properly and
I want to warn the luser if they exec or subshell it instead.

TIA,
--
---
Tim Daneliuk
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: Was I Sourced?

2013-02-12 Thread Teske, Devin
On Tue, 12 Feb 2013, Tim Daneliuk wrote:

 Is there a way for script to determine whether is was sourced
 or forked off as a subprocess when it was invoked?
 

Not that I'm aware of.


 I have a script that needs to be sourced to work properly and
 I want to warn the luser if they exec or subshell it instead.
 

In order for a user to exec a script it has to have the invocation line:

#!/bin/sh

So naturally, if your script is missing this as the first line, the file will 
not be interpretable (and thus exec will fail). And if the file is not 
executable (due to lack of invocation line) then you also shouldn't have any 
worry about execution within a sub-shell (though it will still be possible to 
source within a sub-shell using . -- but that shouldn't be any different 
than sourcing in the main shell).

One thin you could do is to use an invocation line that will warn the user that 
it shouldn't be executed directly...


#!/not_directly_executable # Use the source luke

So when someone executes your script they get...

-bash: ./script: /not_directly_executable: bad interpreter: No such file or 
directory
-- 
Devin

_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Chmod of /dev/ulptN

2013-02-12 Thread Warren Block

On Tue, 12 Feb 2013, Polytropon wrote:


On Mon, 11 Feb 2013 18:33:12 -0800, Ronald F. Guilmette wrote:

I exactly followed the directions here:

  http://lists.freebsd.org/pipermail/freebsd-questions/2012-February/238118.html

Nontheless, my /dev/lpt0 node still only has permissions set to 0644.


In the subject you've mentioned /dev/ulpt (USB LPT port), and
now /dev/lpt (conventional LPT port), still the same applies
for both.


Actually, the standard devfs.conf settings do not work for dynamic 
devices like ulpt0.  devd is the only way to do that for dynamic 
devices.  Here's an example I use use for a USB printer.  The vendor and 
product IDs were determined with usbconfig dump_device_desc:


# WB
# link Epson R200 printer to /dev/ulpt-r200 and unlpt-r200
attach 20 {
device-name ulpt[0-9];
match vendor 0x04b8;
match product 0x0005;
action ln -sf /dev/$device-name /dev/ulpt-r200;
action ln -sf /dev/`echo $device-name \
| sed -e 's/ulpt/unlpt/'` /dev/unlpt-r200;
action chmod g+w /dev/ulpt-r200 /dev/unlpt-r200;
};

# WB
detach 20 {
device-name ugen[0-9].[0-9];
match vendor 0x04b8;
match product 0x0005;
action rm -f /dev/ulpt-r200 /dev/unlpt-r200;
};
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Was I Sourced?

2013-02-12 Thread Fabian Keil
Teske, Devin devin.te...@fisglobal.com wrote:

 On Tue, 12 Feb 2013, Tim Daneliuk wrote:
 
  Is there a way for script to determine whether is was sourced
  or forked off as a subprocess when it was invoked?
  
 
 Not that I'm aware of.

sysutils/zogftw, which has to find and parse itself to
generate the verbose help, does the following:

zogftw_location=$0

if [ zogftw != $(basename ${zogftw_location}) ]; then
# Looks like zogftw has been sourced.
# Try to get the zogftw location through the PATH.
zogftw_location=$(which zogftw)
fi

The check is expected to fail if the user renamed the shell to
zogftw, or the script to something else, but that's unlikely to
happen by accident and the functionality is not essential anyway.

A more reliable method might be investigating $$ and its parents
with ps and friends, but it would also require a lot more code.

I don't remember ever having never seen a ps-based check in the
real world and my impression is that looking at $0 is best practice
if the check doesn't have to be perfect.

Fabian


signature.asc
Description: PGP signature


Re: Was I Sourced?

2013-02-12 Thread Robert Bonomi

 Date: Tue, 12 Feb 2013 08:53:37 -0600
 From: Tim Daneliuk tun...@tundraware.com
 To: FreeBSD Mailing List freebsd-questions@freebsd.org
 Subject: Was I Sourced?

 Is there a way for script to determine whether is was sourced
 or forked off as a subprocess when it was invoked?

 I have a script that needs to be sourced to work properly and
 I want to warn the luser if they exec or subshell it instead.

a 'sourced' script does -not- honor a shebag line.
you can exploit that.

The executable script /usr/local/bin/source_only;
   #!/bin/sh
   echo  Error: this script must be sourced

Your script:
   #!/usr/local/bin/source_only

   {cmd}
   {cmd}
   {cmd}
   {cmd}
   {cmd}
   {cmd}
   ...
   ...

Trying to do it totally self-contained is not easy.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


FreeBSD on Motorola Droid RAZR i ... Intel Atom ... workable ?

2013-02-12 Thread Mm Bsd

The Motorola Droid RAZR i (a variant
of the RAZR m) has an intel atom z2460 processor in it.
 
Unless I am mistaken, this is an amd64 compatible chip that
mainline FreeBSD could run on, yes ?
 
Without getting into the specifics of loading the system
(and using a touchscreen as input), would plain old amd64
FreeBSD run on this device ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: pkgng

2013-02-12 Thread Walter Hurry
On Sat, 15 Dec 2012 18:54:00 +, Matthew Seaman wrote:

 On 15/12/2012 18:23, Walter Hurry wrote:
 On Sat, 15 Dec 2012 15:31:03 +, Matthew Seaman wrote:
 
 'm slowly collecting examples of applications where the shlib analysis
 doesn't work properly
 
 In case you don't already have them in your list: opnjdk7 libreoffice
 
 Thanks.  Added to the list.  It always has to be the really big projects
 (and tedious to debug because of that) doesn't it.

Matthew,

pkg check -Ba is still showing a number of false alarms for virtualbox-
ose-4.2.6.

Walter

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD on Motorola Droid RAZR i ... Intel Atom ... workable ?

2013-02-12 Thread Robert Bonomi

 Date: Tue, 12 Feb 2013 09:31:52 -0800 (PST)
 From: Mm Bsd mmbsd1...@yahoo.com
 Subject: FreeBSD on Motorola Droid RAZR i ... Intel Atom ... workable ?
 To: freebsd-questions@freebsd.org


 The Motorola Droid RAZR i (a variant
 of the RAZR m) has an intel atom z2460 processor in it.
  
 Unless I am mistaken, this is an amd64 compatible chip that
 mainline FreeBSD could run on, yes ?
  
 Without getting into the specifics of loading the system
 (and using a touchscreen as input), would plain old amd64
 FreeBSD run on this device ?

Not without a lot of low level work.  like _all_ the device
drivers, interrupt handlers, etc.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: pkgng

2013-02-12 Thread Matthew Seaman
On 12/02/2013 17:43, Walter Hurry wrote:
 On Sat, 15 Dec 2012 18:54:00 +, Matthew Seaman wrote:
 
 On 15/12/2012 18:23, Walter Hurry wrote:
 On Sat, 15 Dec 2012 15:31:03 +, Matthew Seaman wrote:

 'm slowly collecting examples of applications where the shlib analysis
 doesn't work properly

 In case you don't already have them in your list: opnjdk7 libreoffice

 Thanks.  Added to the list.  It always has to be the really big projects
 (and tedious to debug because of that) doesn't it.
 
 Matthew,
 
 pkg check -Ba is still showing a number of false alarms for virtualbox-
 ose-4.2.6.

Ah.  OK.  I'll investigate, at the weekend probably.  Just to be sure,
you are running pkgng master from Github, and not the release from ports?

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matt...@infracaninophile.co.uk



signature.asc
Description: OpenPGP digital signature


Re: pkgng

2013-02-12 Thread Walter Hurry
On Tue, 12 Feb 2013 17:57:57 +, Matthew Seaman wrote:

 On 12/02/2013 17:43, Walter Hurry wrote:
 On Sat, 15 Dec 2012 18:54:00 +, Matthew Seaman wrote:
 
 On 15/12/2012 18:23, Walter Hurry wrote:
 On Sat, 15 Dec 2012 15:31:03 +, Matthew Seaman wrote:

 'm slowly collecting examples of applications where the shlib
 analysis doesn't work properly

 In case you don't already have them in your list: opnjdk7 libreoffice

 Thanks.  Added to the list.  It always has to be the really big
 projects (and tedious to debug because of that) doesn't it.
 
 Matthew,
 
 pkg check -Ba is still showing a number of false alarms for virtualbox-
 ose-4.2.6.
 
 Ah.  OK.  I'll investigate, at the weekend probably.  Just to be sure,
 you are running pkgng master from Github, and not the release from
 ports?

No, I'm running the (up to date) version from the ports:

$ pkg -v
1.0.7
$ 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Was I Sourced?

2013-02-12 Thread Tim Daneliuk

On 02/12/2013 11:10 AM, Robert Bonomi wrote:

Date: Tue, 12 Feb 2013 08:53:37 -0600
From: Tim Daneliuk tun...@tundraware.com
To: FreeBSD Mailing List freebsd-questions@freebsd.org
Subject: Was I Sourced?

Is there a way for script to determine whether is was sourced
or forked off as a subprocess when it was invoked?

I have a script that needs to be sourced to work properly and
I want to warn the luser if they exec or subshell it instead.


a 'sourced' script does -not- honor a shebag line.
you can exploit that.

The executable script /usr/local/bin/source_only;
#!/bin/sh
echo  Error: this script must be sourced

Your script:
#!/usr/local/bin/source_only

{cmd}
{cmd}
{cmd}
{cmd}
{cmd}
{cmd}
...
...

Trying to do it totally self-contained is not easy.





Actually, it's not that hard.  Setting the shebang line to this does
the trick:
  
  #!/bin/echo This Script Must Be Sourced
  


Thanks to all who replied on this one ...

  


--
---
Tim Daneliuk
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to achieve E-Mail Notification on root login?

2013-02-12 Thread Karl Vogel
 Robert Huff roberth...@rcn.com writes:

R The bigger question is how quickly do you need to know - instantly?
R once an hour?  once a day?

 On 12 Feb 2013 15:39:56 +0100, Frank Staals fr...@fstaals.net said:

F I don't think anything other than instantly makes sense. If it would be
F a batch thing sent once an hour/day/whatever then an attacker could
F simply prevent the mail being sent, and/or remove her entry from the
F log.  Furthermore, one should realize that any setup would only be
F guaranteed to report the first breach/login.

   Yup.  I can see two ways around this, and the first one is ugly.

   1.  Rename su and make it executable only by root, so you can't bypass
   the part that handles the email alert:

   # mv /usr/bin/su /usr/bin/sulocal
   # chmod 700 /usr/bin/sulocal

   2.  Create a script in a directory accessible only by root:

   # cat /root/bin/emailalert
   #!/bin/sh
   echo root login by `/usr/bin/id -un` | exec /path/to/sendmail -t
   exit 1

   3.  Replace /usr/bin/su with a small setuid C program to call the
   script and then run the real su, something like:

   main(int argc, char **argv, char **envp) {
   system(/root/bin/emailalert);
   execve(/usr/bin/sulocal, argv, envp);
   exit(1);
   }

   The second (better) way is to have your logs immediately forwarded to
   another host specifically set up for intrusion detection, install a
   log-monitoring system there, and send the message from there.  This way,
   the original logs are more likely to be intact when you investigate.

-- 
Karl Vogel  I don't speak for the USAF or my company

Some guy just yelled at me for texting and driving.  I told him to
get off my hood and mind his own business.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


opera - ghostery

2013-02-12 Thread ajtiM
Hi!

I am an Opera user long time and I use extension Ghostery long time too but 
now on Opera 12.14 I had a problem with Ghostery wizard setting each time when 
I start Opera. When I exit Opera I use Tool-Delete Private Data where I have 
checked everything except Delete settings and data for all extensions.
I uninstalled all other extension but the problem persist.

Thanks in advance.

Mitja
--
http://www.redbubble.com/people/lumiwa
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Sendmail relaying for Intranet?

2013-02-12 Thread Chris Maness
I have a FreeBSD box running sendmail that can see the whole internet.
 I have another mail server that hosts mail for an intranet.  It does
not have access to the i-net.  I think I remember reading that it is
possible for the i-net attached sendmail to relay mail for a domain to
another host.  Is there an easy answer and configuration for this?  If
not, no biggy since this exercise is more academic than a necessity.

Thanks,
Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


NTFS 4 Terabyte drive problems on FreeBSD?

2013-02-12 Thread Scott Ballantyne
Hi,

I'm trying to mount a 4 TB drive (The Seagate Backup-Plus) on FreeBSD
9.0 Generic, using 

mount -t ntfs /dev/da0s1 /mnt

It fails with:

g_vfs_done() da1s1[READ(offset=0, length=1042)]error=22
mount_ntfs: /dev/da1s1 bad argument

However, I can mount a 2 TB ntfs drive with no problem, using the same
command, and the 4TB drive checks out fine in Windows. 

Does anyone know if this limitation exists, and if there is a
work-around? I only need READ access to this drive.

Thanks a lot!
Scott
-- 
s...@ssr.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Upgrade causes loss of all firefox settings (?)

2013-02-12 Thread Ronald F. Guilmette

In general, I don't upgrade my ports very often, so up until recently
I was running a fairly old version of firefox (firefox-15.0.1,1).

But over the weekend, I moved everything over to a new drive
containing the latest 9.1-RELEASE FreeBSD, and with a complete set
of freshly rebuilt ports, including the latest firefox 18.0.1.
(As part of this process, I copied my entire /home directory over
to the new drive.)

So anway, mostly everything is still working ok, however at some
time during this process, firefox apparently lost track of all
of my personal settings... my start page, all of my bookmarks,
and all of my saved web site user IDs an passwords.

I looked in the /usr/ports/UPDATING file for some clue as to why
this might have happened and found none.

Looking into this issue a bit deeper, I've now learned that all of
one's personal settings are stored in a directory having a name which
has the following general form:

~/.mozilla/firefox/.default

where the  part is some eight character apparently random
combination of lower case letters and digits.

The odd thing is that it appears that all of my old firefox setting
are still alive and well and living under a subdirectory of the
~/.mozilla/firefox directory called 4up9dkb1.default.  However it
does also appear that my execution of firefox, for the first time, on
this new system I've been putting together has resulted in the creation
of a brand new parallel subdirectory, located in the same directory as
my original personal settings .default directory, but this new one is
named nh2ykiym.default.  And now, firefox is apparently saving and
retrieving my (new set of) personal settings out of that new directory.

So, um, what gives?  Why did this happen?  And more to the point,
can I get back all of my personal settings just via the following
seemingly intutive commands:

rm -fr nh2ykiym.default
mv 4up9dkb1.default nh2ykiym.default

or will that break something else in some obscure but annoying way?


Regards,
rfg
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrade causes loss of all firefox settings (?)

2013-02-12 Thread Ralf Mardorf
The profile should be available by 'firefox -ProfileManager' [1], OTOH
I'm booted to Ubuntu Precise and the ProfileManager doesn't start, for
Arch Linux I used two profiles, one shared with another Linux and after
a while I couldn't use the shared profiles anymore, but the
ProfileManger still started.

In the past
rm -fr nh2ykiym.default
mv 4up9dkb1.default nh2ykiym.default
worked, or instead simply chose it with the ProfileManger, but nowadays
there might be something fishy.

[1] IIRC only one could have the name *.default, the other must have
another name, *.foo.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrade causes loss of all firefox settings (?)

2013-02-12 Thread Ralf Mardorf
On Tue, 2013-02-12 at 22:49 +0100, Ralf Mardorf wrote:
 The profile should be available by 'firefox -ProfileManager' [1], OTOH
 I'm booted to Ubuntu Precise and the ProfileManager doesn't start, for
 Arch Linux I used two profiles, one shared with another Linux and after
 a while I couldn't use the shared profiles anymore, but the
 ProfileManger still started.
 
 In the past
 rm -fr nh2ykiym.default
 mv 4up9dkb1.default nh2ykiym.default
 worked, or instead simply chose it with the ProfileManger, but nowadays
 there might be something fishy.
 
 [1] IIRC only one could have the name *.default, the other must have
 another name, *.foo.

simply try
mv nh2ykiym.default nh2ykiym.test
perhaps it then will use
4up9dkb1.default
automatically

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrade causes loss of all firefox settings (?)

2013-02-12 Thread CeDeROM
On Tue, Feb 12, 2013 at 10:38 PM, Ronald F. Guilmette
r...@tristatelogic.com wrote:
 Looking into this issue a bit deeper, I've now learned that all of
 one's personal settings are stored in a directory having a name which
 has the following general form:
 ~/.mozilla/firefox/.default

Hey Ronald, are you sure there is no corruption on the disk? Have you
preformatted your new drive? I had disks that lost data if used with
no pre-format stage. Have you tried forcing fsck? Sometimes when my
machine crash there is a silent corruption on the filesystem and some
settings are lost/changed...

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrade causes loss of all firefox settings (?)

2013-02-12 Thread Ralf Mardorf
On Tue, 2013-02-12 at 22:52 +0100, Ralf Mardorf wrote:
 On Tue, 2013-02-12 at 22:49 +0100, Ralf Mardorf wrote:
  The profile should be available by 'firefox -ProfileManager' [1], OTOH
  I'm booted to Ubuntu Precise and the ProfileManager doesn't start, for
  Arch Linux I used two profiles, one shared with another Linux and after
  a while I couldn't use the shared profiles anymore, but the
  ProfileManger still started.
  
  In the past
  rm -fr nh2ykiym.default
  mv 4up9dkb1.default nh2ykiym.default
  worked, or instead simply chose it with the ProfileManger, but nowadays
  there might be something fishy.
  
  [1] IIRC only one could have the name *.default, the other must have
  another name, *.foo.
 
 simply try
 mv nh2ykiym.default nh2ykiym.test
 perhaps it then will use
 4up9dkb1.default
 automatically

After a 'killall -9 -w firefox' the ProfileManager did start :). Closing
the windows wasn't enough ;). FWIW version for this Linux install is
15.0.1.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrade causes loss of all firefox settings (?)

2013-02-12 Thread Ralf Mardorf
On Tue, 2013-02-12 at 23:00 +0100, CeDeROM wrote:
 Hey Ronald, are you sure there is no corruption on the disk? Have you
 preformatted your new drive? I had disks that lost data if used with
 no pre-format stage. Have you tried forcing fsck? Sometimes when my
 machine crash there is a silent corruption on the filesystem and some
 settings are lost/changed...

Firefox is my preferred browser, but it has some disadvantages compared
to other browsers. 1. It's slow and bloated, even without add-ons,
fortunately it doesn't matter on my relatively modern machine. 2. It's
known for all kind of issues. Some years ago there sometimes was the
need to delete the configuration, to get Firefox running again, it
simply couldn't be started sometimes, because there were bugs.

Regarding to the kind of issue, it's more likely that Firefox is buggy
and the HDD still is ok.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD on Motorola Droid RAZR i ... Intel Atom ... workable ?

2013-02-12 Thread Joshua Isom

On 2/12/2013 11:31 AM, Mm Bsd wrote:


The Motorola Droid RAZR i (a variant
of the RAZR m) has an intel atom z2460 processor in it.

Unless I am mistaken, this is an amd64 compatible chip that
mainline FreeBSD could run on, yes ?

Without getting into the specifics of loading the system
(and using a touchscreen as input), would plain old amd64
FreeBSD run on this device ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



You would need a bootloader, since I doubt it uses UEFI an I'm not sure. 
 None of the drivers are probably supported, so you'll probably need to 
write device drivers, everything from graphics to storage.  By the time 
you're done and have something workable, it will be so out of date it 
will be a relic.  Linux already supports a lot, and for embedded, 
because of Android, the chipset makers have to have working linux 
drivers to sell chips.  Including getting the datasheets, it's outside 
the scope of an independent developer.  Now if you're Google and you 
want to get rid of every vestige of GPL out of Android, it'll be ready 
to ship by the end of the year, on ARM and amd64.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrade causes loss of all firefox settings (?)

2013-02-12 Thread CeDeROM
On Tue, Feb 12, 2013 at 11:11 PM, Ralf Mardorf
ralf.mard...@rocketmail.com wrote:
 Firefox is my preferred browser, but it has some disadvantages compared
 to other browsers.

Give a try to Chromium :-) I have been using Opera for long time
because it was fast and small. Not that long ago I have switched to
Chromium and this was really good step - it is opensource/bsd, faster
than firefox, you will find shortcut keys almost the same as in
firefox/gnome, very good integration with google, h264 support, lots
of applications/applets, etc etc :-)

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrade causes loss of all firefox settings (?)

2013-02-12 Thread Ralf Mardorf
On Tue, 2013-02-12 at 23:26 +0100, CeDeROM wrote:
 On Tue, Feb 12, 2013 at 11:11 PM, Ralf Mardorf
 ralf.mard...@rocketmail.com wrote:
  Firefox is my preferred browser, but it has some disadvantages compared
  to other browsers.
 
 Give a try to Chromium :-) I have been using Opera for long time
 because it was fast and small. Not that long ago I have switched to
 Chromium and this was really good step - it is opensource/bsd, faster
 than firefox, you will find shortcut keys almost the same as in
 firefox/gnome, very good integration with google, h264 support, lots
 of applications/applets, etc etc :-)

My favorites are Firefox and Opera, but I also have Chromium installed
for both, FreeBSD and Linux. I don't like the new style of Opera and the
style of Chromium. I prefer classic menus. In the future I might need to
install Chrome :S. I'm not a flash fan, but I already couldn't download
the last Internet provider bill :D, perhaps a flash or some other script
issue. Btw. the design of Opera still is closer to my workflow than the
design of Chromium.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Chmod of /dev/ulptN

2013-02-12 Thread Ronald F. Guilmette

In message alpine.bsf.2.00.1302120808400.95...@mail.fig.ol.no, 
=?ISO-8859-1?Q?Trond_Endrest=F8l?= trond.endres...@fagskolen.gjovik.no wrote:

On Mon, 11 Feb 2013 18:33-0800, Ronald F. Guilmette wrote:

 I exactly followed the directions here:
 
   http://lists.freebsd.org/pipermail/freebsd-questions/2012-February/238118.
html
 
 Nontheless, my /dev/lpt0 node still only has permissions set to 0644.
 
 Why?
 
 What did I do wrong?

Is this about /dev/ulpt[0-9]+ or about /dev/lpt[0-2]?

I was only concerned about /dev/ulpt[0-9]+

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Sendmail relaying for Intranet?

2013-02-12 Thread Robison, Dave

On 02/12/2013 12:54, Chris Maness wrote:
 I have a FreeBSD box running sendmail that can see the whole internet.
  I have another mail server that hosts mail for an intranet.  It does
 not have access to the i-net.  I think I remember reading that it is
 possible for the i-net attached sendmail to relay mail for a domain to
 another host.  Is there an easy answer and configuration for this?  If
 not, no biggy since this exercise is more academic than a necessity.
 
 Thanks,
 Chris Maness
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
 
 

in sendmail.cf on the host to be your relay, check for DS and use it
like this:

DS relayhost.domain.com

in sendmail.cf on the hosts which will be relaying, use the DS command
but point them to your new relay host.

hope this helps.

Dave



-- 
Dave Robison
Sales Solution Architect II
FIS Banking Solutions
510/621-2089 (w)
530/518-5194 (c)
510/621-2020 (f)
da...@vicor.com
david.robi...@fisglobal.com

_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrade causes loss of all firefox settings (?)

2013-02-12 Thread Polytropon
On Tue, 12 Feb 2013 23:40:41 +0100, Ralf Mardorf wrote:
 I don't like the new style of Opera and the
 style of Chromium. I prefer classic menus.

Luckily you can change that in Opera and give it the
traditional style. Still Opera suffers from ongoing
disimprovement (e. g. reduction of functionality in
file save dialog or printing support).



 I'm not a flash fan, but I already couldn't download
 the last Internet provider bill :D, perhaps a flash or some other script
 issue.

Maybe Java? Some old fasioned guys still use it... ;-)

Even though I don't like Flash especially because it
has become what animated GIFs have been used for in the
past - replacement for HTML, nagging, stealing focus,
aggressive advertising with sound and so on - it perfectly
works with Opera.



 Btw. the design of Opera still is closer to my workflow than the
 design of Chromium.

That's my problem with Chromium and Firefox too. I like
the possibility to remove visual controls (red X button
on tabs for example) without losing functionality (middle
click on tab closes tab). From my very individual experience,
Opera offers the best integration of mouse and keyboard. It's
sufficiently fast and renders stuff acceptably correct.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrade causes loss of all firefox settings (?)

2013-02-12 Thread Ralf Mardorf
On Wed, 2013-02-13 at 00:16 +0100, Polytropon wrote:
 Even though I don't like Flash especially because it
 has become what animated GIFs have been used for in the
 past - replacement for HTML, nagging, stealing focus,
 aggressive advertising with sound and so on - it perfectly
 works with Opera.

The best websites are made by people using braille instead of displays.
Sometimes they choose less good color combinations :D, but they usually
are willing to fix it, if you ask them.

I'm a musician, I need to activate the sound card and to turn on
additional audio gear, before I get sound. I don't like noise all the
times. It reminds me of the idiotic sounds on the main bridge of the
Enterprise. Desktop sound is disabled and if I need audio notification I
want the bell, a simple beep from the computer case's thingy. Idiotic
animations stealing focus are a serious issue for me, regarding to
dyslexia signs already are animated for me, when they aren't animated. I
already can't use applications that animate a mini icon in a menu bar,
if it's impossible to disable it. It's drivin' me crazy. It's drivin'
me nuts.

Even if old printers are slow, loud and the printing wasn't brilliant,
I'm missing my ink ribbon listing paper printers. Printing was cheap
that time and reading was much nicer than using the monitor of my
computer or my tablet PC. I've got inkjet printer, but it's to expensive
for me, to use them.

I heard that reading should be more comfortable on a cheap reader than
on an iPad, but I won an iPad and will keep it as a toy and reader and
won't buy a reader, since they aren't really cheap.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: NTFS 4 Terabyte drive problems on FreeBSD?

2013-02-12 Thread Dan Nelson
In the last episode (Feb 12), Scott Ballantyne said:
 Hi,
 
 I'm trying to mount a 4 TB drive (The Seagate Backup-Plus) on FreeBSD
 9.0 Generic, using 
 
 mount -t ntfs /dev/da0s1 /mnt
 
 It fails with:
 
 g_vfs_done() da1s1[READ(offset=0, length=1042)]error=22
 mount_ntfs: /dev/da1s1 bad argument

That's a strange length (1042).  I would have expected a multiple of the
device blocksize (4096 in the case of the Backup Plus).
 
 However, I can mount a 2 TB ntfs drive with no problem, using the same
 command, and the 4TB drive checks out fine in Windows. 
 
 Does anyone know if this limitation exists, and if there is a
 work-around? I only need READ access to this drive.

You can try the sysutils/fusefs-ntfs port; the ntfs code in the base system
hasn't had much work done on it lately.


-- 
Dan Nelson
dnel...@allantgroup.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to achieve E-Mail Notification on root login?

2013-02-12 Thread Chris Hill

On Tue, 12 Feb 2013, Zyumbilev, Peter wrote:


Allow sudo bash only.


The OP didn't want to use sudo because it's not in the base system. I 
would guess he also doesn't want to use bash, since it too is not in the 
base system.


 [ snip ]

--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging / ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Exporting a ntfs-3g mounted drive over NFS?

2013-02-12 Thread Scott Ballantyne
Hello,

Thanks to Dan Nelson I was able to mount my 4 TB drive using
ntfs-3g. Now I need to export it over NFS, and it doesn't work.

I'm using a bootable ZFS system, if that makes any difference. I don't
see why it should.

Basically, I can export a directory as long as a ntfs-3g filesystem is
not moutned on it. And this is also true for the kernel ntfs
system. The second a ntfs or ntfs-3g filesystem is mounted on it,
there are problems.

Here are more details:

create a directory: /var/video, set globally readable and searchable
permissions.

I create a simple entry in /etc/exports:

/var/VIDEO

I copy some files in there and HUP mountd. 
I check to see that I can access the files on the clients. No
problem.

I go back, delete the files (just to be safe), and then I  mount the
ntfs-3g drive on /var/VIDEO with 

ntfs-3g -o ro /dev/da0s1 /var/VIDEO

I check to see that I can see the ntfs filesystem in /var/VIDEO with
ls (I can), and all the permissions are ok (every file is rwxrwxrwx). 

Then I HUP mountd. Mountd now tells me that my formerly good line in
exports is bad. I can't access the files on the clients.

I umount /var/VIDEO. I HUP mountd. All is well once again, on the
server and the clients, except I can't access the files on the ntfs
drive which I need to do.

Anyone have any ideas what is going on here, and even better, how I
might get it to work?

Thanks!
Scott
-- 
s...@ssr.com



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Exporting a ntfs-3g mounted drive over NFS?

2013-02-12 Thread Scott Ballantyne
I wrote:

 Hello,
 
 Thanks to Dan Nelson I was able to mount my 4 TB drive using
 ntfs-3g. Now I need to export it over NFS, and it doesn't work.
 
 I'm using a bootable ZFS system, if that makes any difference. I don't
 see why it should.
 
 Basically, I can export a directory as long as a ntfs-3g filesystem is
 not moutned on it. And this is also true for the kernel ntfs
 system. The second a ntfs or ntfs-3g filesystem is mounted on it,
 there are problems.
 
 Here are more details:
 
 create a directory: /var/video, set globally readable and searchable
 permissions.
 
 I create a simple entry in /etc/exports:
 
 /var/VIDEO
 
 I copy some files in there and HUP mountd. 
 I check to see that I can access the files on the clients. No
 problem.
 
 I go back, delete the files (just to be safe), and then I  mount the
 ntfs-3g drive on /var/VIDEO with 
 
 ntfs-3g -o ro /dev/da0s1 /var/VIDEO
 
 I check to see that I can see the ntfs filesystem in /var/VIDEO with
 ls (I can), and all the permissions are ok (every file is rwxrwxrwx). 
 
 Then I HUP mountd. Mountd now tells me that my formerly good line in
 exports is bad. I can't access the files on the clients.
 
 I umount /var/VIDEO. I HUP mountd. All is well once again, on the
 server and the clients, except I can't access the files on the ntfs
 drive which I need to do.
 
 Anyone have any ideas what is going on here, and even better, how I
 might get it to work?
 
 Thanks!
 Scott
 -- 
 s...@ssr.com
 
 

To add another detail, I have discovered that while I can't export the
files over NFS, I can use SAMBA, which helps me somewhat. I still need
NFS, and generally would prefer it for performance reasons, so if
anyone has any hints, please do let me know.

Best,
Scott
-- 
s...@ssr.com

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrade causes loss of all firefox settings (?)

2013-02-12 Thread Ralf Mardorf
 Forwarded Message 
From: Ralf Mardorf ralf.mard...@alice-dsl.net
To: freebsd-questions@freebsd.org
Subject: Re: Upgrade causes loss of all firefox settings (?)
Date: Wed, 13 Feb 2013 00:52:34 +0100

On Wed, 2013-02-13 at 00:47 +0100, Ralf Mardorf wrote:
 The best websites are made by people using braille instead of displays.
 Sometimes they choose less good color combinations :D, but they usually
 are willing to fix it, if you ask them.

A blind Linux user's homepage: http://juliencoder.de/

The homepage of my provider: http://www.o2online.de/

What site is more pleasant ;)?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Sendmail relaying for Intranet?

2013-02-12 Thread Chris Maness
On Tue, Feb 12, 2013 at 3:05 PM, Robison, Dave
david.robi...@fisglobal.com wrote:

 On 02/12/2013 12:54, Chris Maness wrote:
 I have a FreeBSD box running sendmail that can see the whole internet.
  I have another mail server that hosts mail for an intranet.  It does
 not have access to the i-net.  I think I remember reading that it is
 possible for the i-net attached sendmail to relay mail for a domain to
 another host.  Is there an easy answer and configuration for this?  If
 not, no biggy since this exercise is more academic than a necessity.

 Thanks,
 Chris Maness
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



 in sendmail.cf on the host to be your relay, check for DS and use it
 like this:

 DS relayhost.domain.com

 in sendmail.cf on the hosts which will be relaying, use the DS command
 but point them to your new relay host.

 hope this helps.

 Dave

Dave, how would I add this to the MC file instead of the CF file?  I
usually rebuild these after an upgrade or a configuration change, and
I would rather do it in the MC file for that reason.

Thanks,
Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Sendmail relaying for Intranet?

2013-02-12 Thread Bernt Hansson

2013-02-13 06:30, Chris Maness skrev:

On Tue, Feb 12, 2013 at 3:05 PM, Robison, Dave
david.robi...@fisglobal.com wrote:


On 02/12/2013 12:54, Chris Maness wrote:

I have a FreeBSD box running sendmail that can see the whole internet.
  I have another mail server that hosts mail for an intranet.  It does
not have access to the i-net.  I think I remember reading that it is
possible for the i-net attached sendmail to relay mail for a domain to
another host.  Is there an easy answer and configuration for this?  If
not, no biggy since this exercise is more academic than a necessity.

Thanks,
Chris Maness




in sendmail.cf on the host to be your relay, check for DS and use it
like this:

DS relayhost.domain.com

in sendmail.cf on the hosts which will be relaying, use the DS command
but point them to your new relay host.

hope this helps.

Dave


Dave, how would I add this to the MC file instead of the CF file?  I
usually rebuild these after an upgrade or a configuration change, and
I would rather do it in the MC file for that reason.

Thanks,
Chris Maness


Look in /etc/mail/your-hosts-name.mc for this line

dnl define(`SMART_HOST', `your.isp.mail.server')
 on your intranet machine and put in your inet machine name.

You also need to edit /etc/mail/access on your relay to allow to relay 
for your itranet machine.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org