Tuesday, September 23, 2008

Cifs "mount error 13 = Permission denied"

$mount -t cifs //win-share-hostname/share /mnt/win -o username=user,password=passwd

Command above is used to mount windows network share on linux box but it is throwing an error mentioned below when trying to mount a win xp network share from a fedora core 6 box.
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
The error above is because of a bug in kernel which got in to the kernel version 2.6.18 and above. The same mount command works great for the kernel version 2.6.17 and below.
Bugzilla link to the bug: http://bugzilla.kernel.org/show_bug.cgi?id=7209

To avoid this error even in kernel version 2.6.18 and above. We need to use the network domain name with the mount command.

Working mount command irrespective of the bug is as below.

$
mount -t cifs //win-share-hostname/share /mnt/win -o username=user,password=passwd,domain=xxx

cheers,
make world open.

Wednesday, June 25, 2008

List all the installed perl modules

We often need to know all the perl modules installed on a box. One below is the solution

perl -MFile::Find=find -MFile::Spec::Functions -Tlwe 'find { wanted => sub { print
canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC'

cheers, make world open

Wednesday, February 13, 2008

missed an emotion or two...

It really pumps some extra life when someone from your loved one's cirlce remembers you with delicate emotions. When you go through this emotional burst, all your time which you spent together reels in front of you like a movie. Memory recalls all those moments which is somewhere deep into the hearts.
Thanks a lot to Subhash Chandran for this wonderful words.