fstab syntax

General support questions
Post Reply
gw1500se
Posts: 199
Joined: 2012/05/07 13:53:35

fstab syntax

Post by gw1500se » 2020/04/27 17:38:37

I need some new eyes as I am not seeing the error. I am trying to mount a CIFS share that will be rw for everyone. When I try to mount it I get an "Invalid argument" error.

//192.168.10.110/Backups /Backups cifs defaluts,uid=1000,gid=1000,umask=000,credentials=/etc/security/fstab.EAP 0 0

Can someone spot my error? TIA.

Thraex
Posts: 45
Joined: 2019/05/14 19:50:28

Re: fstab syntax

Post by Thraex » 2020/04/27 17:41:07

defaluts should be defaults and the contents of credentials=/etc/security/fstab.EAP should be:
user=username
password=password
Last edited by Thraex on 2020/04/27 17:57:36, edited 1 time in total.

gw1500se
Posts: 199
Joined: 2012/05/07 13:53:35

Re: fstab syntax

Post by gw1500se » 2020/04/27 17:50:54

Thanks. I knew I was missing something dumb. Unfortunately after correcting the spelling, I get the same error. Should the credentials file be one line or 2 or does it not matter?

I'm thinking it is something on the windows side because if I leave out the credentials and let if prompt, that error occurs after entering the password.
Last edited by gw1500se on 2020/04/27 17:53:31, edited 1 time in total.

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

Re: fstab syntax

Post by TrevorH » 2020/04/27 17:52:58

Credentials file is one line per parameter, no leading spaces

Also, are you really sure you want to use umask=000?
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

gw1500se
Posts: 199
Joined: 2012/05/07 13:53:35

Re: fstab syntax

Post by gw1500se » 2020/04/27 17:55:39

I edited my previous post while you were responding.

Yes, I want all users full access.

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

Re: fstab syntax

Post by TrevorH » 2020/04/27 17:56:23

Do you have the cifs-utils package installed?
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

gw1500se
Posts: 199
Joined: 2012/05/07 13:53:35

Re: fstab syntax

Post by gw1500se » 2020/04/27 18:04:48

Yes, version 6.8.

gw1500se
Posts: 199
Joined: 2012/05/07 13:53:35

Re: fstab syntax

Post by gw1500se » 2020/04/27 18:12:43

My apologies. This is technically the wrong forum. The problem is on Raspberian not Centos.

Post Reply

Return to “CentOS 7 - General Support”