NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Steedvlx600
Nov 06, 2016Luminary
How to access actual samba configuration
I've seen a lot of talk. But no answers, on accessing SMB and other configurations on this unit. How do you SEE what is inside the system? Can I connect a monitor and keyboard? Is there a bash terminal to access?
So far, I have been infuriated by the lack of basic access to simple things like directory permissions and the like. I'm no Linux pro. But, I'm not a complete idiot either.
I am trying to get my home shares accessible from Ubuntu 16.04 using Samba. And, while all of the Linux machines can SEE the server in the workgroup, CONNECT to the server, and even access some files on the server... Nothing I do has enabled me to access my home directory SMB shares on the server from any linux client. I can easily access SMB shares between the Linux machines themselves. So, I know Samba is working and configured correctly on those server/client pairs.
Everything in /data such as all the default folders is accessible... But, the ../home folder doesn't even appear in the list. It's as if it was HIDDEN... And, the server doesn't force a user/pass entry when accessing it using Samba client. So, how does it know what user is accessing? I thought I disabled anonymous access in SMB Plus.
1) Exactly HOW do we access the .hidden directories and config files on the system? A whole lot of talk... But, no answers about this.
2) How to you edit them to disallow anonymous access? OR simply force the unit to make all shares visible?
3) How do you FORCE the unit to require a user/pass combination for SMB shares? So, that it "knows" what shares to serve up...
My theory is that IF login was forced, then the unit 'should' migrate the correct directories to the client /mnt automatically... shouldn't it?
4) And, what exactly is the full path to my home/username directory? Manual connections to the home shares always fails with a "no path..." error.
Any input appreciated. Especially appreciated would be comprehensive, plain English informtion sources for the above issues.
10 Replies
Replies have been turned off for this discussion
- StephenBGuru - Experienced User
Steedvlx600 wrote:
Is there a bash terminal to access?
The answer to this particular question is not hard to find - http://kb.netgear.com/app/answers/detail/a_id/30068
Enable ssh on system->services. Putty or Winscp (windows) or Terminal (OSX) can then ssh into the NAS. Username is "root", password is the NAS admin password.
While you could try to edit the smb .conf files, that could create trouble later on - firmware upgrades or OS reinstalls might reset them, as might other configuration changes via the web ui.
Adjusting permissions, owners, groups is certainly doable.
I don't access the NAS from linux PCs, so I don't have hands-on experience with linux SMB clients and how they handle credentials. Windows by default presents the credentials that were used to log into the windows account, this behavior is changed by setting credentials in the windows credential manager.
Certainly turning off anonymous access for each share in the admin web ui works. Accessing the /data volume itself requires use of the NAS admin credentials, and will show you a "home" folder, that has the user "private" home folders inside. There are some other hidden folders in /data - including .apps.
If you use a specific user account when accessing the NAS, you will see that user's home folder in the main share list.
Note you could also mount shares (and home folders) with NFS (but you cannot mount the full data volume that way).
- Steedvlx600Luminary
Thank you for the reply. SSH would be a last ditch effort only if absolutely necessary. I don't even know that it is a permissions problem or smb.conf problem at this point. (I thought it was) But, if that were the case, then no other system would be able to see the home folders either.
But, as you said, disabling anonymous access SHOULD force a prompt for credentials... Yet, it doesn't for the home folders. Additionally, the NAS rejects any attempt to mount at /data point via Samba. No matter what creds are used.
It (Nautilus) DOES this for the default folders. It displays them nicely. And, selecting one will bring up a nice prompt for credentials, which is them appropriately honored.The problem is that no matter how I try to mount the server... I cannot get it to show me the home folder. And, ReadyNAS is rejecting admin credentials submitted during this process. It will only accept my user-class credentials.
Thank you for taking the time to help.- mdgm-ntgrNETGEAR Employee Retired
Have you changed the admin password away from the default one yet? If not try changing the admin password.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!