this post was submitted on 16 Jan 2025
11 points (92.3% liked)

Linux

49109 readers
853 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

cross-posted from: https://programming.dev/post/24130558

My Win10 work laptop has a network share of a remote windows server. I access it everyday. If i change passwords, i have to remap the share.

I have a linux vm that does the builds for my project. It too has a mounted directory mapped to that remote windows share, using my credentials.

I tried mapping the share in another linux vm but got errors so ended up quitting as it wasn't that important.

However, now i can't access said share in any device, by name or IP address. WTF happened?

The mount command i use in linux is mount -t cifs -o rw,relatime,vers=default,cache=strict,username=my.username,domain=,uid=118,noforceuid,gid=130,noforcegid,addr=10.10.10.10,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=1048576,wsize=1048576,echo_interval=60,actimeo=1 //10.10.10.10/dir1/dir2 /media/remoteshare, the UID/GID are of the user that runs the builds.

I'd get having errors on mounting the remote share, but i'd expect that to be limited to the local computer i was trying to mount on, not that it would propagate to any device that has this share mapped!

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 7 points 5 days ago (3 children)

Without the error messages, it sounds like a security mechanism on the server side.
Any chance the errors are due to too many login attempts, or bad password?

[–] 0x0 3 points 5 days ago (2 children)

At the moment i'm getting mount error(13): Permission denied at the new vm (where i was attempting to mount).
dmesg has

[ 9254.003440] CIFS: Attempting to mount \\10.10.10.10\dir\\dir2
[ 9254.181314] CIFS: Status code returned 0xc000006d STATUS_LOGON_FAILURE
[ 9254.181333] CIFS: VFS: \\10.10.10.10 Send error in SessSetup = -13
[ 9254.181367] CIFS: VFS: cifs_mount failed w/return code = -13

Attempting to ls the share in the other vm where it was previously working yields Host is down.
(Everyone else can access the share just fine.)

[–] [email protected] 2 points 5 days ago (1 children)

MNByChoice is right.

Read the server's logfile for better info.

[–] 0x0 2 points 5 days ago

I have no access and, it seems, neither does local IT. Yay.