Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Directory /mnt/samba is shared by SAMBA and NFS server.
I'm connecting as a client by Windows 10 on it and:
- I can see/read/write directories & files on samba usages
- I can see directories by NFS usage but I can't see any files inside
What is wrong?
Files /mnt/samba on Linux ext4 partition are:
- directories nobody:nogroup 0777
- files 0777 (.exe files) or 0666 (all others)
Samba usage is configured by /etc/samba/smb.conf as:
So now, I'm able to connect to the server NFS by four different points. I prefer to have one common.. but.. don't know how to achieve it.
Now all files under are visible.
To be honest I don't understand why I was not able to see files inside those all partitions and at the same time I saw directories structure of it.
Maybe some file permissions of the parent directory - but I tried to change it with
Code:
chown nobody:nogroup
and
Code:
chmod 0777
.
Maybe some mount permission in
Code:
/etc/fstab
Maybe some other
Code:
/etc/exports
parameters [1]:
Quote:
nohide
This option is based on the option of the same name provided in IRIX NFS. Normally, if a server exports two filesystems one of which is mounted on the other, then the client will have to mount both filesystems explicitly to get access to them. If it just mounts the parent, it will see an empty directory at the place where the other filesystem is mounted. That filesystem is "hidden".
Setting the nohide option on a filesystem causes it not to be hidden, and an appropriately authorised client will be able to move from the parent to that filesystem without noticing the change.
However, some NFS clients do not cope well with this situation as, for instance, it is then possible for two files in the one apparent filesystem to have the same inode number.
The nohide option is currently only effective on single host exports. It does not work reliably with netgroup, subnet, or wildcard exports.
This option can be very useful in some situations, but it should be used with due care, and only after confirming that the client system copes with the situation effectively.
Just a note... making everything 777 removes all security from the filesystem. And for a SAMBA export, that can be a disaster as it is how ransomeware takes over.
^ yes, this needs to be stressed.
bischop, now that you figured out what went wrong, change all that 0777 stuff back to normal values (probably just remove those config instructions and go with default values?).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.