SEO

vBulletin Search Engine Optimization


Go Back   UnixAdminTalk.com > Unix Operating Systems > Linux Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-19-2008, 11:42 AM
bmearns
 
Posts: n/a
Default autofs not working - mkfifo failed

I'm trying to setup autofs to automount some samba shares from
another
system. I've followed a couple of different tutorials specifically
to
this point (the latest being http://www.howtoforge.com/accessing_..._using_autofs).
They all seem to agree on how to set it up, but I'm still having
problems.

The relevant line in /etc/auto.master is
/cifs /etc/auto.cifs --timeout=60

And auto.cifs is exactly as shown in that last tutorial (http://
http://www.howtoforge.com/accessing_..._using_autofs),
except that I changed the location of the credentials file to
credfile="/root/.$key.smbpasswd". The server I'm trying to connect
to
is called darwin, and the credentials file is /
root/.darwin.smbpasswd

The relevant entries from the system log are below, but I can't make
sense of them. I've tried searching out the error message on the
web,
to no avail.

Can anyone offer any suggestions? Thanks!
-Brian

The relevant system log entries (cat /var/log/messages | grep autofs)
are:
**************************************************
Jan 12 09:47:40 frigg automount[3656]: create_logpri_fifo: mkfifo
for /
var/run/autofs.fifo-cifs failed: Permission denied
Jan 12 09:47:40 frigg automount[3656]: create_logpri_fifo: mkfifo
for /
var/run/autofs.fifo-misc failed: Permission denied
Jan 12 09:47:40 frigg automount[3656]: create_logpri_fifo: mkfifo
for /
var/run/autofs.fifo-net failed: Permission denied
Jan 12 09:48:13 frigg automount[3715]: create_logpri_fifo: mkfifo
for /
var/run/autofs.fifo-cifs failed: Permission denied
Jan 12 09:48:13 frigg automount[3715]: create_logpri_fifo: mkfifo
for /
var/run/autofs.fifo-misc failed: Permission denied
Jan 12 09:48:13 frigg automount[3715]: create_logpri_fifo: mkfifo
for /
var/run/autofs.fifo-net failed: Permission denied
**************************************************
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 11:42 AM
JOHN MATHEW
 
Posts: n/a
Default Re: autofs not working - mkfifo failed

On Jan 13, 1:55 am, bmearns <[email protected]> wrote:
> I'm trying to setup autofs to automount some samba shares from
> another
> system. I've followed a couple of different tutorials specifically
> to
> this point (the latest beinghttp://www.howtoforge.com/accessing_windows_or_samba_shares_using_autofs).
> They all seem to agree on how to set it up, but I'm still having
> problems.
>
> The relevant line in /etc/auto.master is
> /cifs /etc/auto.cifs --timeout=60
>
> And auto.cifs is exactly as shown in that last tutorial (http://
> http://www.howtoforge.com/accessing_..._using_autofs),
> except that I changed the location of the credentials file to
> credfile="/root/.$key.smbpasswd". The server I'm trying to connect
> to
> is called darwin, and the credentials file is /
> root/.darwin.smbpasswd
>
> The relevant entries from the system log are below, but I can't make
> sense of them. I've tried searching out the error message on the
> web,
> to no avail.
>
> Can anyone offer any suggestions? Thanks!
> -Brian
>

Hi Brian,

I am not sure from where you need to mount it....(mean is it from
windows to linux machine or from linux to linux).

Anyway i will talk about the mounting of windows share on linux using
smb

I have done it with the help of fstab (not have done with autofs,i
used autofs for NIS only).

what you need to do is..
1) go to the fstab ... vi /etc/fstab
2)add a line to the end..
3)//192.168.0.10/windowsharename /mountdirectoryoflinux cifs
default,credentials=/etc/.smbpasswordfile 0 0
4) type up the command ... mount -a

Tips:
1)create a /etc/.smbpasswordfile.where it have the
username=name ..next line...
password=password
(use windows password and user name here)
2)Create the mount directory too on the linux machine.

Let me know if it help you.

Thank You

Melbin Mathew

Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:08 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0