Mouting a remote drive with cifs
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I've created a remote mounted drive by adding this to my /etc/fstab
:
\192.x.x.xweb /mnt/web cifs username=X,password=X,domain=X
and mounting it with sudo mount /mnt/web
(which works perfectly!)
The problem is that I can only mount the drive as root. Running mount /mnt/web
(without sudo) results in the error
mount: only root can mount 192.x.x.xweb on /mnt/web
I read this guide that suggests the following syntax
//192.168.1.100/data /media/corpnet cifs username=johnny,domain=sealab,noauto,rw,users 0 0
When I change my entry to use this syntax like this:
\192.x.x.xweb /mnt/web cifs username=X,password=X,domain=X,noauto,rw,users 0 0
and run mount /mnt/web
I get
mount.cifs: permission denied: no match for /mnt/web found in /etc/fstab
I then read this question along with it's highest voted answer, but the same error appears.
I have checked that my web
folder in the /mnt
directory has CHMOD 775, which should be ok.
What could be wrong?
debian permissions mount fstab cifs
add a comment |Â
up vote
0
down vote
favorite
I've created a remote mounted drive by adding this to my /etc/fstab
:
\192.x.x.xweb /mnt/web cifs username=X,password=X,domain=X
and mounting it with sudo mount /mnt/web
(which works perfectly!)
The problem is that I can only mount the drive as root. Running mount /mnt/web
(without sudo) results in the error
mount: only root can mount 192.x.x.xweb on /mnt/web
I read this guide that suggests the following syntax
//192.168.1.100/data /media/corpnet cifs username=johnny,domain=sealab,noauto,rw,users 0 0
When I change my entry to use this syntax like this:
\192.x.x.xweb /mnt/web cifs username=X,password=X,domain=X,noauto,rw,users 0 0
and run mount /mnt/web
I get
mount.cifs: permission denied: no match for /mnt/web found in /etc/fstab
I then read this question along with it's highest voted answer, but the same error appears.
I have checked that my web
folder in the /mnt
directory has CHMOD 775, which should be ok.
What could be wrong?
debian permissions mount fstab cifs
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I've created a remote mounted drive by adding this to my /etc/fstab
:
\192.x.x.xweb /mnt/web cifs username=X,password=X,domain=X
and mounting it with sudo mount /mnt/web
(which works perfectly!)
The problem is that I can only mount the drive as root. Running mount /mnt/web
(without sudo) results in the error
mount: only root can mount 192.x.x.xweb on /mnt/web
I read this guide that suggests the following syntax
//192.168.1.100/data /media/corpnet cifs username=johnny,domain=sealab,noauto,rw,users 0 0
When I change my entry to use this syntax like this:
\192.x.x.xweb /mnt/web cifs username=X,password=X,domain=X,noauto,rw,users 0 0
and run mount /mnt/web
I get
mount.cifs: permission denied: no match for /mnt/web found in /etc/fstab
I then read this question along with it's highest voted answer, but the same error appears.
I have checked that my web
folder in the /mnt
directory has CHMOD 775, which should be ok.
What could be wrong?
debian permissions mount fstab cifs
I've created a remote mounted drive by adding this to my /etc/fstab
:
\192.x.x.xweb /mnt/web cifs username=X,password=X,domain=X
and mounting it with sudo mount /mnt/web
(which works perfectly!)
The problem is that I can only mount the drive as root. Running mount /mnt/web
(without sudo) results in the error
mount: only root can mount 192.x.x.xweb on /mnt/web
I read this guide that suggests the following syntax
//192.168.1.100/data /media/corpnet cifs username=johnny,domain=sealab,noauto,rw,users 0 0
When I change my entry to use this syntax like this:
\192.x.x.xweb /mnt/web cifs username=X,password=X,domain=X,noauto,rw,users 0 0
and run mount /mnt/web
I get
mount.cifs: permission denied: no match for /mnt/web found in /etc/fstab
I then read this question along with it's highest voted answer, but the same error appears.
I have checked that my web
folder in the /mnt
directory has CHMOD 775, which should be ok.
What could be wrong?
debian permissions mount fstab cifs
debian permissions mount fstab cifs
edited Sep 1 at 6:46
asked Aug 31 at 19:00
Daniel
1276
1276
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
UPDATE (see the discussion on the comments):
You are typing \ instead of //. For linux you must use // even if the network file system is running inside Windows.
The old post:
You are writing mount /mnt/web, but the directory you write in /etc/fstab was /media/corpnet
so you need to write /mnt/web in /etc/fstab...
So change /media/corpnet
//192.168.1.100/data /media/corpnet cifs username=johnny,domain=sealab,noauto,rw,users 0 0
To /mnt/web:
//192.168.1.100/data /mnt/web cifs username=johnny,domain=sealab,noauto,rw,users 0 0
Or if you can't edit fstab change your command to mount /media/corpnet (and you must create this directory too)
Good lucky and if that works, please select this as the correct answer.
I am not using corpnet any place in my code. I was just quoting the syntax specified by the linked article. I'll edit my question to make this more obvious
â Daniel
Sep 1 at 6:45
Now you are typing \ instead of // for linux you must use // even if the network file system is running inside Windows.
â Luciano Andress Martini
Sep 3 at 12:09
If you are not typing \ and this is not the real file contents consider posting the real file.
â Luciano Andress Martini
Sep 3 at 12:17
That was it! Changing \ to // fixed my problem!
â Daniel
Sep 3 at 20:46
I updated the answer with this information, please select it as the right answer.
â Luciano Andress Martini
Sep 3 at 20:46
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
UPDATE (see the discussion on the comments):
You are typing \ instead of //. For linux you must use // even if the network file system is running inside Windows.
The old post:
You are writing mount /mnt/web, but the directory you write in /etc/fstab was /media/corpnet
so you need to write /mnt/web in /etc/fstab...
So change /media/corpnet
//192.168.1.100/data /media/corpnet cifs username=johnny,domain=sealab,noauto,rw,users 0 0
To /mnt/web:
//192.168.1.100/data /mnt/web cifs username=johnny,domain=sealab,noauto,rw,users 0 0
Or if you can't edit fstab change your command to mount /media/corpnet (and you must create this directory too)
Good lucky and if that works, please select this as the correct answer.
I am not using corpnet any place in my code. I was just quoting the syntax specified by the linked article. I'll edit my question to make this more obvious
â Daniel
Sep 1 at 6:45
Now you are typing \ instead of // for linux you must use // even if the network file system is running inside Windows.
â Luciano Andress Martini
Sep 3 at 12:09
If you are not typing \ and this is not the real file contents consider posting the real file.
â Luciano Andress Martini
Sep 3 at 12:17
That was it! Changing \ to // fixed my problem!
â Daniel
Sep 3 at 20:46
I updated the answer with this information, please select it as the right answer.
â Luciano Andress Martini
Sep 3 at 20:46
add a comment |Â
up vote
2
down vote
accepted
UPDATE (see the discussion on the comments):
You are typing \ instead of //. For linux you must use // even if the network file system is running inside Windows.
The old post:
You are writing mount /mnt/web, but the directory you write in /etc/fstab was /media/corpnet
so you need to write /mnt/web in /etc/fstab...
So change /media/corpnet
//192.168.1.100/data /media/corpnet cifs username=johnny,domain=sealab,noauto,rw,users 0 0
To /mnt/web:
//192.168.1.100/data /mnt/web cifs username=johnny,domain=sealab,noauto,rw,users 0 0
Or if you can't edit fstab change your command to mount /media/corpnet (and you must create this directory too)
Good lucky and if that works, please select this as the correct answer.
I am not using corpnet any place in my code. I was just quoting the syntax specified by the linked article. I'll edit my question to make this more obvious
â Daniel
Sep 1 at 6:45
Now you are typing \ instead of // for linux you must use // even if the network file system is running inside Windows.
â Luciano Andress Martini
Sep 3 at 12:09
If you are not typing \ and this is not the real file contents consider posting the real file.
â Luciano Andress Martini
Sep 3 at 12:17
That was it! Changing \ to // fixed my problem!
â Daniel
Sep 3 at 20:46
I updated the answer with this information, please select it as the right answer.
â Luciano Andress Martini
Sep 3 at 20:46
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
UPDATE (see the discussion on the comments):
You are typing \ instead of //. For linux you must use // even if the network file system is running inside Windows.
The old post:
You are writing mount /mnt/web, but the directory you write in /etc/fstab was /media/corpnet
so you need to write /mnt/web in /etc/fstab...
So change /media/corpnet
//192.168.1.100/data /media/corpnet cifs username=johnny,domain=sealab,noauto,rw,users 0 0
To /mnt/web:
//192.168.1.100/data /mnt/web cifs username=johnny,domain=sealab,noauto,rw,users 0 0
Or if you can't edit fstab change your command to mount /media/corpnet (and you must create this directory too)
Good lucky and if that works, please select this as the correct answer.
UPDATE (see the discussion on the comments):
You are typing \ instead of //. For linux you must use // even if the network file system is running inside Windows.
The old post:
You are writing mount /mnt/web, but the directory you write in /etc/fstab was /media/corpnet
so you need to write /mnt/web in /etc/fstab...
So change /media/corpnet
//192.168.1.100/data /media/corpnet cifs username=johnny,domain=sealab,noauto,rw,users 0 0
To /mnt/web:
//192.168.1.100/data /mnt/web cifs username=johnny,domain=sealab,noauto,rw,users 0 0
Or if you can't edit fstab change your command to mount /media/corpnet (and you must create this directory too)
Good lucky and if that works, please select this as the correct answer.
edited Sep 3 at 20:48
answered Aug 31 at 19:37
Luciano Andress Martini
3,153829
3,153829
I am not using corpnet any place in my code. I was just quoting the syntax specified by the linked article. I'll edit my question to make this more obvious
â Daniel
Sep 1 at 6:45
Now you are typing \ instead of // for linux you must use // even if the network file system is running inside Windows.
â Luciano Andress Martini
Sep 3 at 12:09
If you are not typing \ and this is not the real file contents consider posting the real file.
â Luciano Andress Martini
Sep 3 at 12:17
That was it! Changing \ to // fixed my problem!
â Daniel
Sep 3 at 20:46
I updated the answer with this information, please select it as the right answer.
â Luciano Andress Martini
Sep 3 at 20:46
add a comment |Â
I am not using corpnet any place in my code. I was just quoting the syntax specified by the linked article. I'll edit my question to make this more obvious
â Daniel
Sep 1 at 6:45
Now you are typing \ instead of // for linux you must use // even if the network file system is running inside Windows.
â Luciano Andress Martini
Sep 3 at 12:09
If you are not typing \ and this is not the real file contents consider posting the real file.
â Luciano Andress Martini
Sep 3 at 12:17
That was it! Changing \ to // fixed my problem!
â Daniel
Sep 3 at 20:46
I updated the answer with this information, please select it as the right answer.
â Luciano Andress Martini
Sep 3 at 20:46
I am not using corpnet any place in my code. I was just quoting the syntax specified by the linked article. I'll edit my question to make this more obvious
â Daniel
Sep 1 at 6:45
I am not using corpnet any place in my code. I was just quoting the syntax specified by the linked article. I'll edit my question to make this more obvious
â Daniel
Sep 1 at 6:45
Now you are typing \ instead of // for linux you must use // even if the network file system is running inside Windows.
â Luciano Andress Martini
Sep 3 at 12:09
Now you are typing \ instead of // for linux you must use // even if the network file system is running inside Windows.
â Luciano Andress Martini
Sep 3 at 12:09
If you are not typing \ and this is not the real file contents consider posting the real file.
â Luciano Andress Martini
Sep 3 at 12:17
If you are not typing \ and this is not the real file contents consider posting the real file.
â Luciano Andress Martini
Sep 3 at 12:17
That was it! Changing \ to // fixed my problem!
â Daniel
Sep 3 at 20:46
That was it! Changing \ to // fixed my problem!
â Daniel
Sep 3 at 20:46
I updated the answer with this information, please select it as the right answer.
â Luciano Andress Martini
Sep 3 at 20:46
I updated the answer with this information, please select it as the right answer.
â Luciano Andress Martini
Sep 3 at 20:46
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f466102%2fmouting-a-remote-drive-with-cifs%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password