Upgraded Synology NAS to DSM 7 and now mount cifs gives permission denied

3 min read 22-10-2024
Upgraded Synology NAS to DSM 7 and now mount cifs gives permission denied

Upgrading your Synology NAS to the latest DiskStation Manager (DSM) version, specifically DSM 7, can often lead to improved performance, better security features, and enhanced functionality. However, some users have reported facing issues with CIFS (Common Internet File System) mounts after the upgrade, particularly receiving “permission denied” errors when trying to access shared folders.

Understanding the Problem

After upgrading to DSM 7, many users find that they can no longer mount CIFS shares, encountering an error message stating "permission denied." This issue can stem from changes in permission settings, security protocols, or SMB (Server Message Block) settings introduced in the newer version of DSM.

Here’s a simplified version of the scenario you might be facing:

Original Code:

mount -t cifs //server/share /mnt/mountpoint -o username=user,password=pass

Revised Code (with added options for DSM 7):

mount -t cifs //server/share /mnt/mountpoint -o username=user,password=pass,vers=3.0,sec=ntlmssp

Analyzing the Changes in DSM 7

DSM 7 introduced several changes that could affect CIFS/SMB shares:

  1. New Security Protocols: DSM 7 defaults to using newer security protocols, which means that the CIFS/SMB version you are attempting to use might not match what the NAS is configured to accept. As a result, specifying the version explicitly (e.g., vers=3.0) can resolve compatibility issues.

  2. Permission Settings: The upgrade may reset or change existing permissions on shared folders. After upgrading, ensure that your user has proper permissions to access the shared folder you are trying to mount. You can check this in the Synology Control Panel under Shared Folder settings.

  3. Advanced SMB Settings: In DSM 7, the option to enable or disable SMB protocols (SMB1, SMB2, SMB3) can be found under Control Panel > File Services > SMB. If you are working with older systems, ensure that SMB1 is enabled, although it is advisable to use the latest versions for security reasons.

  4. Firewall or Network Settings: Sometimes, network configuration or firewall settings can also hinder access. Make sure that your network allows traffic on the appropriate ports, such as TCP ports 137-139 and 445.

Practical Example for Mounting CIFS Shares

To ensure that you can successfully mount your CIFS share, you could use the following command, which includes options to specify the version and security protocol:

sudo mount -t cifs //192.168.1.100/shared_folder /mnt/mountpoint -o username=myUser,password=myPassword,vers=3.0,sec=ntlmssp

Make sure to replace //192.168.1.100/shared_folder with the correct server and share path, /mnt/mountpoint with your desired mount point, and fill in your actual username and password.

Additional Tips

  • Check Logs: If the problem persists, check the NAS logs for any error messages that might give further clues about the permission denial.
  • Documentation and Community: The Synology Knowledge Base provides a wealth of resources for troubleshooting. Additionally, forums like the Synology Community can be beneficial for finding similar issues faced by other users.

Useful Resources

Conclusion

While upgrading to DSM 7 can bring significant benefits to your Synology NAS, it can also introduce challenges with CIFS mounts due to changes in permissions, protocols, and security settings. By ensuring you are using the correct mount commands and understanding the implications of the upgrade, you can effectively resolve the “permission denied” issues and regain access to your shared resources. Always remember to check the settings on both your NAS and client machines to ensure compatibility.

By following the outlined solutions and keeping your system configurations in mind, you can easily troubleshoot CIFS mount issues after upgrading to DSM 7.