CentOS 5.5 Can`t mount windows share

Issues related to configuring your network
Revan
Posts: 3
Joined: 2016/12/12 13:22:02

CentOS 5.5 Can`t mount windows share

Postby Revan » 2016/12/12 14:05:48

Hello,

i want to mount a share from a Windows Server 2012R2 on a CentOS 5.5 Machine.
I`m not very experienced in Linux so please be patient :oops:

What i tried so far:

I made an share on the Windows Machine with write permissions to a account named User

then i created an user on the centos machine with:

Code: Select all

useradd -s /bin/true User
smbpasswd -a User


After that i tried to mount the share:

Code: Select all

mount.cifs //server/share /mnt/mountpoint -o username=User
mount.cifs \\server\share /mnt/mountpoint -o username=User
mount.cifs \\\\server\\share /mnt/mountpoint -o username=User


This leads to:

Code: Select all

mount error(13): Permission denied
Refer to mount.cifs(8) manual page (e.g. man mount.cifs)
Status code returned 0xc00006d NT_STATUS_LOGON_FAILURE
 CIFS VFS: Send error in SessSetup = -13
 CIFS VFS cifs_mount failed w/return code = -13


After reading the man page i tried to use the sec parameter and additionally the verbose parameter with no luck.

Maybe someone can help me out here? I`m a bit lost :oops:
Last edited by Revan on 2016/12/12 14:48:35, edited 2 times in total.

User avatar
avij
Forum Moderator
Posts: 2141
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: CentOS 5.5 Can`t mount windows share

Postby avij » 2016/12/12 14:39:36

See if it works any better from a CentOS 5.11 machine. You should be able to update from 5.5 to 5.11 with yum update.

Revan
Posts: 3
Joined: 2016/12/12 13:22:02

Re: CentOS 5.5 Can`t mount windows share

Postby Revan » 2016/12/12 14:44:18

Unfortunatly i cannot update the machine because the software that we use with this machine depends on 5.5.

When i try to acces the share without mounting it works:

Code: Select all

smbclient //server/share -U User

User avatar
TrevorH
Forum Moderator
Posts: 21007
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 5.5 Can`t mount windows share

Postby TrevorH » 2016/12/12 16:45:49

a) CentOS 5.5 is 6.5 years old
b) you have 6.5 years worth of security vulnerabilities present
c) CentOS 5 goes end of life in about 3 months and there will be no more security updates for it

Migrate to a newer version soon. If your software depends on an exact version then it's broken and you need to find a better supplier.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

Revan
Posts: 3
Joined: 2016/12/12 13:22:02

Re: CentOS 5.5 Can`t mount windows share

Postby Revan » 2016/12/13 07:27:00

Its not that simple as you may wish in the real world.

User avatar
TrevorH
Forum Moderator
Posts: 21007
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 5.5 Can`t mount windows share

Postby TrevorH » 2016/12/13 07:37:38

Strangely enough I too live in the real world and it really is that simple. Staying on a 6.5 year old version of insecure software is where it gets out into weird territory...
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke