How to Mount Network Hard Drive (NAS) as Non-Root
Update: I figured out how to do this using fstab and wrote up a tutorial: ![]()
http://ubuntuforums.org/showthread.php?t=1471854
------
I just finished installing Kubuntu 10.04 Lucid and I'm trying to setup my backup script again. In a nutshell, I had a script that would connect using smbmount as my normal user account and then mirror my home folder to the external network attached hard drive with rsync. It is required, as far as I have tested, that rsync be run as user account and not root to work properly.
Part of the setup info I gleaned from this article:
http://www.linux.com/archive/feature/118225
In that article, it is recommended running this command to mount as non-root user:
chmod u+s /usr/bin/smbmnt
However, this file no longer exists in *buntu 10.04. Apparently smbfs has been modified for security reasons. Is there any other way to connect NAS drives as non-root user that is relatively secure? Struggled with this all day yesterday and still no solution.
Comments
-
Um... Sadly I am not an Ubuntu user. But you should still be able to mount CIFS FSs.
Is there a command smbmount? If there is do a:#which smbmount
That will show you were to do your "chmod u+s".
If there is not smbmount command then try to see if you have a mount.cifs.
Some distros only allow that command in root. Not sure how Ubuntu does it. To check to see if you have that command I just type mount and then double tap the "tab" key for auto completion. ^.^
If you do have that then do a "which" command on "mount.cifs" and it should return the path for your "chmod u+s" command.
If you dont have neither smbmount nor mount.cifs then I would venture to guess you need to install a different package. In OpenSuSE the command was provided by the RPM "cifs-mount" so i would guess that something similar needs to be installed on Ubuntu.
Good luck! ^.^ Please let me know if that helps0
Categories
- All Categories
- 178 LFX Mentorship
- 178 LFX Mentorship: Linux Kernel
- 775 Linux Foundation IT Professional Programs
- 384 Cloud Engineer IT Professional Program
- 175 Advanced Cloud Engineer IT Professional Program
- 75 DevOps IT Professional Program - Discontinued
- 7 DevOps & GitOps IT Professional Program
- 103 Cloud Native Developer IT Professional Program
- 7.7K Training Courses & Learning Paths
- 13 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 35 Cloud & Containers Training
- 3 Cybersecurity Training
- 3 DevOps & Site-Reliability Training
- 2 Linux Kernel Development Training
- 2 Networking Training
- 2 Open Source Best Practice Training
- 5 System Administration Training
- 1 System Engineering Training
- 6 Web & Application Development Training
- 798 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 96 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 92 Storage
- 773 Linux Distributions
- 81 Debian
- 68 Fedora
- 24 Linux Mint
- 13 Mageia
- 24 openSUSE
- 151 Red Hat Enterprise
- 32 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 472 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 103 Linux Security
- 79 Network Management
- 102 System Management
- 46 Web Management
- 166 Mobile Computing
- 32 Android
- 119 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 407 Off Topic
- 128 Introductions
- 35 Study Material
- 1.1K Programming and Development
- 311 Kernel Development
- 723 Software Development
- 1K Software
- 418 Applications
- 183 Command Line
- 5 Compiling/Installing
- 71 Games
- 320 Installation
- Archived
- 183 Small Talk
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)