Skip to main content

Timeline for Mount cifs using a credentials file

Current License: CC BY-SA 3.0

18 events
when toggle format what by license comment
May 7, 2023 at 13:58 comment added savedario Just because it's the first hit when searching for "mount credentials file"... The permission problem comes from the fact that the mount is (if I use it the same way) done by the "current user", due to the user option. I was getting similar problems until I used: chmod 600 <credentials.file>; chown <user> <credentials.file>
Jul 14, 2017 at 10:26 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Jun 12, 2017 at 11:54 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
May 10, 2017 at 21:03 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Apr 9, 2017 at 16:11 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Feb 26, 2017 at 0:12 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Jan 23, 2017 at 10:32 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Dec 12, 2016 at 2:59 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Oct 29, 2016 at 17:33 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Sep 25, 2016 at 11:42 answer added FPC timeline score: 6
Sep 18, 2014 at 18:27 comment added LJSkow You are right that if I modify it to say user=[Windows username] in the fstab it will work. But I need non-root users to mount this, and I thought that the user command allowed that. If I change the user=[Windows Username], then I need to add users to allow non-roots to mount. But also isn't the point of the credentials is to have the username and password in them. Non-root users will not be able to alter the fstab but they can alter the credentials file. So what am I doing wrong with my credentials file that it doesn't work correctly?
Sep 18, 2014 at 14:14 comment added LJSkow I'm not sure why I need to specify user=arg when I put the username in the credentials file.
Sep 18, 2014 at 14:12 comment added LJSkow I'm sorry. In the credentials file the username and password are on two separate lines. I edited the post to reflect that.
Sep 18, 2014 at 14:11 comment added eyoung100 From the mount.cifs man page: user=arg specifies the username to connect as. If this is not given, then the environment variable USER is used. This option can also take the form "user%password" or "workgroup/user" or "workgroup/user%password" to allow the password and workgroup to be specified as part of the username.
Sep 18, 2014 at 14:10 history edited LJSkow CC BY-SA 3.0
added 44 characters in body
Sep 18, 2014 at 14:09 comment added wurtel credential file needs separate lines for username and password, it's not clear if that's the case here. Also you have the "user" option twice in the fstab (not that that should matter).
Sep 18, 2014 at 14:02 review First posts
Sep 18, 2014 at 14:11
Sep 18, 2014 at 13:58 history asked LJSkow CC BY-SA 3.0