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

The name of the pictureThe name of the pictureThe name of the pictureClash 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







share|improve this question






















  • 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










  • @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















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







share|improve this question






















  • 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










  • @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













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







share|improve this question














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









share|improve this question













share|improve this question




share|improve this question








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 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










  • @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

















  • 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










  • @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
















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
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














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













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)