[clug-talk] mounting question
Shawn
sgrover at open2space.com
Wed May 20 16:20:58 PDT 2009
That seems to have done it.
I installed smbfs (sudo apt-get install smbfs), which included the
mount.cifs command. From there I was able to do
mount.cifs //192.168.0.14/c$ /home/sgrover/remote -o
username=user,password=pass
without having to do a "sudo". So I put it into my script and things
seem to be working more or less the way I want. I'll know more when I
reboot and reset the environment (openvpn is also involved....)
Now, I just need to figure out how to do umount without sudo.. :) But
this isn't as big an issue - I don't mind if the dirs stay mounted until
I shut down the workstation...
Thanks for the responses.
Shawn
Shawn wrote:
> No joy.
>
> typing in "mount" and doing tab-completion (as my regular user account),
> I get the following:
>
> sgrover at peon:~/working_folder$ mount
> mount mount.fuse mount.ntfs mount.ntfs-3g mountpoint
>
> so, mount.cifs isn't there. However, my box *does* have smbclient
> installed. I'll try installing smbfs as well and see if that does the
> trick.
>
> If it helps, my box is a more or less stock Kubuntu 9.04 install. Also,
> the purpose of my script is for backing up a couple of remote servers
> unattended, but user initiated. (i.e. start script and walk away).
>
> Shawn
>
> Hendrik Schaink wrote:
>> On debian, the samba fielsystem mount command used to be smbmount, which
>> is now linked to /sbin/mount.smbfs which in turn is a wrapper for
>> mount.cifs. Interestingly, the permissions for /sbin/mount.cifs are
>> '-rwsr-wr-w' which _should_ allow anyone to mount cifs shares.
>>
>> I suggest mounting using mount.cifs
>>
>> HTH, Hendrik
>>
>>
>> Shawn wrote:
>>> I'm trying to execute the following command in a script:
>>>
>>> mount -t cifs -o username=$user,password=$pass //192.168.0.14/c$
>>> $MOUNTDIR/remote
>>>
>>> I'm getting told that only root can do this. The local directory in
>>> question is owned by my user account, and I need to run the script as
>>> that user - not as root.
>>>
>>> I'm trying to remove the need to use sudo and/or enter passwords here to
>>> help automate things....
>>>
>>> Sooo, what am I missing? Does my user account need to be added to a
>>> group so it can use mount?
>>>
>>> Shawn
>>
>>
>> _______________________________________________
>> clug-talk mailing list
>> clug-talk at clug.ca
>> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
>> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
>> **Please remove these lines when replying
>
> _______________________________________________
> clug-talk mailing list
> clug-talk at clug.ca
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> **Please remove these lines when replying
More information about the clug-talk
mailing list