I have an Ubuntu 22.04.4 LTS system that I want to use an SMB filesystem on. I do not currently know for sure what OS the SMB server runs, or its version. nmap -sS -O thinks it's probably Windows Server 2016 or 2012.
The SMB filesystem has many directories, but from what I've seen, they all have permissions of 755 or 711.
The directories that have mode 755 all allow me to cd into them.
The directories that are mode 711 do not allow me to cd into them. Depending on whether I try to cd to these as root or myself, I get "bash: cd: /mymount/somewhere/a: Operation not supported" or "bash: cd: /mymount/somewhere/a: Permission denied", respectively.
This is inconsistent with what I would expect from an ext4 or other Linux-native filesystem, but that's not what this question is about.
One of my autofs entries for the filesystem currently looks like:
corp-Teams -fstype=cifs,rw,credentials=/etc/creds-corp ://example.com/somewhere
I've tried other permutations of the options allowed - so many that it's impractical to list them all here. The above is the simplest one.
Please note that I've obfuscated the hostname and paths for security.
I'm wondering if I need to get my Linux system into the Windows domain to cd to /mymount/somewhere/a, where "a" is a mode 711 directory, or if there is a nicer (more Linux-native and/or simpler) way.
For completeness, I'll mention that my /etc/creds-corp has two lines and looks like:
username=me
password=pw
There's nothing about the domain in it, and I don't know whether there should be or not.
Thanks!
The SMB filesystem has many directories, but from what I've seen, they all have permissions of 755 or 711.
The directories that have mode 755 all allow me to cd into them.
The directories that are mode 711 do not allow me to cd into them. Depending on whether I try to cd to these as root or myself, I get "bash: cd: /mymount/somewhere/a: Operation not supported" or "bash: cd: /mymount/somewhere/a: Permission denied", respectively.
This is inconsistent with what I would expect from an ext4 or other Linux-native filesystem, but that's not what this question is about.
One of my autofs entries for the filesystem currently looks like:
corp-Teams -fstype=cifs,rw,credentials=/etc/creds-corp ://example.com/somewhere
I've tried other permutations of the options allowed - so many that it's impractical to list them all here. The above is the simplest one.
Please note that I've obfuscated the hostname and paths for security.
I'm wondering if I need to get my Linux system into the Windows domain to cd to /mymount/somewhere/a, where "a" is a mode 711 directory, or if there is a nicer (more Linux-native and/or simpler) way.
For completeness, I'll mention that my /etc/creds-corp has two lines and looks like:
username=me
password=pw
There's nothing about the domain in it, and I don't know whether there should be or not.
Thanks!