How to set up credentials file for mounted file system in linux

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have a public file system which needs you to login in order to create files (I believe it's smb or Samba). I mounted it and added this line to /etc/fstab (modified a bit to hide important info):
//filesystem.url/Public /mnt/Public cifs uid=1000,guid=1000,rw,credentials=/etc/userInfo 0 0
In the userInfo file I have the login information.
However, when I go to /mnt/Public and try to create a folder I get permission issues which leads me to think that the credentials file may not be set up correctly because I know the account does have permissions.
Did I do something wrong in my set up of the credentials file?
According to 'mount' command I do have read write permissions but it's not actually letting me create and save files.
Output of testparm command:
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Thanks
filesystems users
add a comment |Â
up vote
0
down vote
favorite
I have a public file system which needs you to login in order to create files (I believe it's smb or Samba). I mounted it and added this line to /etc/fstab (modified a bit to hide important info):
//filesystem.url/Public /mnt/Public cifs uid=1000,guid=1000,rw,credentials=/etc/userInfo 0 0
In the userInfo file I have the login information.
However, when I go to /mnt/Public and try to create a folder I get permission issues which leads me to think that the credentials file may not be set up correctly because I know the account does have permissions.
Did I do something wrong in my set up of the credentials file?
According to 'mount' command I do have read write permissions but it's not actually letting me create and save files.
Output of testparm command:
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Thanks
filesystems users
Sounds more like samba issue - can you post the output oftestparm
â ivanivan
Feb 1 at 19:20
Please try withnopermon the mount line. If that works I'll give you an answer explaining why.
â roaima
Feb 3 at 10:49
@roaima I added noperm to that line in fstab but nothing's changed
â Frank A. Fone
Feb 5 at 17:49
You didumountandmountafter the edit, didn't you...?
â roaima
Feb 5 at 17:51
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a public file system which needs you to login in order to create files (I believe it's smb or Samba). I mounted it and added this line to /etc/fstab (modified a bit to hide important info):
//filesystem.url/Public /mnt/Public cifs uid=1000,guid=1000,rw,credentials=/etc/userInfo 0 0
In the userInfo file I have the login information.
However, when I go to /mnt/Public and try to create a folder I get permission issues which leads me to think that the credentials file may not be set up correctly because I know the account does have permissions.
Did I do something wrong in my set up of the credentials file?
According to 'mount' command I do have read write permissions but it's not actually letting me create and save files.
Output of testparm command:
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Thanks
filesystems users
I have a public file system which needs you to login in order to create files (I believe it's smb or Samba). I mounted it and added this line to /etc/fstab (modified a bit to hide important info):
//filesystem.url/Public /mnt/Public cifs uid=1000,guid=1000,rw,credentials=/etc/userInfo 0 0
In the userInfo file I have the login information.
However, when I go to /mnt/Public and try to create a folder I get permission issues which leads me to think that the credentials file may not be set up correctly because I know the account does have permissions.
Did I do something wrong in my set up of the credentials file?
According to 'mount' command I do have read write permissions but it's not actually letting me create and save files.
Output of testparm command:
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Thanks
filesystems users
edited Feb 2 at 14:33
asked Feb 1 at 19:13
Frank A. Fone
11
11
Sounds more like samba issue - can you post the output oftestparm
â ivanivan
Feb 1 at 19:20
Please try withnopermon the mount line. If that works I'll give you an answer explaining why.
â roaima
Feb 3 at 10:49
@roaima I added noperm to that line in fstab but nothing's changed
â Frank A. Fone
Feb 5 at 17:49
You didumountandmountafter the edit, didn't you...?
â roaima
Feb 5 at 17:51
add a comment |Â
Sounds more like samba issue - can you post the output oftestparm
â ivanivan
Feb 1 at 19:20
Please try withnopermon the mount line. If that works I'll give you an answer explaining why.
â roaima
Feb 3 at 10:49
@roaima I added noperm to that line in fstab but nothing's changed
â Frank A. Fone
Feb 5 at 17:49
You didumountandmountafter the edit, didn't you...?
â roaima
Feb 5 at 17:51
Sounds more like samba issue - can you post the output of
testparmâ ivanivan
Feb 1 at 19:20
Sounds more like samba issue - can you post the output of
testparmâ ivanivan
Feb 1 at 19:20
Please try with
noperm on the mount line. If that works I'll give you an answer explaining why.â roaima
Feb 3 at 10:49
Please try with
noperm on the mount line. If that works I'll give you an answer explaining why.â roaima
Feb 3 at 10:49
@roaima I added noperm to that line in fstab but nothing's changed
â Frank A. Fone
Feb 5 at 17:49
@roaima I added noperm to that line in fstab but nothing's changed
â Frank A. Fone
Feb 5 at 17:49
You did
umount and mount after the edit, didn't you...?â roaima
Feb 5 at 17:51
You did
umount and mount after the edit, didn't you...?â roaima
Feb 5 at 17:51
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f421270%2fhow-to-set-up-credentials-file-for-mounted-file-system-in-linux%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
Sounds more like samba issue - can you post the output of
testparmâ ivanivan
Feb 1 at 19:20
Please try with
nopermon the mount line. If that works I'll give you an answer explaining why.â roaima
Feb 3 at 10:49
@roaima I added noperm to that line in fstab but nothing's changed
â Frank A. Fone
Feb 5 at 17:49
You did
umountandmountafter the edit, didn't you...?â roaima
Feb 5 at 17:51