1 |
On Wed, 05 May 2010 23:20:01 +0200, Matt Harrison wrote about Re: |
2 |
[gentoo-user] samba vs. cifs: |
3 |
|
4 |
>On Wed, May 05, 2010 at 06:42:09PM +0200, KH wrote: |
5 |
[snip] |
6 |
>> specific (don't want to hear "moo"): Will I be able to mount a samba |
7 |
>> partition without setting the samba use flag and after unmerging |
8 |
>> samba? |
9 |
>> |
10 |
>> Regards |
11 |
>> kh |
12 |
> |
13 |
>I just enable cifs in the kernel and install the mount-cifs script. |
14 |
>That lets me mount remote shares with no trouble at all. |
15 |
|
16 |
I don't even install the mount-cifs script. I simply put the share |
17 |
definition in /etc/fstab on the client, and then use the vanilla mount |
18 |
command. E.g., |
19 |
|
20 |
//192.168.0.2/backups /usr/local/remote_backups cifs |
21 |
noauto,noexec,noatime,nodiratime,user=root,pass=eetoot 0 0 |
22 |
|
23 |
[The above should be on 1 line.] |
24 |
|
25 |
Note that my real password for root is not "eetoot"; that is simply a |
26 |
fake password I set up for Samba shares. |
27 |
|
28 |
Whenever I need to transfer a backup archive to the server, I simply |
29 |
issue: |
30 |
mount /usr/local/remote_backups |
31 |
and then copy the data across. |
32 |
-- |
33 |
Regards, |
34 |
|
35 |
Dave [RLU #314465] |
36 |
====================================================================== |
37 |
dwnoon@... (David W Noon) |
38 |
====================================================================== |
39 |
|
40 |
|
41 |
Hi, |
42 |
|
43 |
just want to answer to that old mail. |
44 |
|
45 |
I have it done as follows: |
46 |
|
47 |
//way/2/otherpc /mnt/mountpoint cifs |
48 |
noatime,credentials=/root/.credentials,uid=1000,umask=000,user 0 0 |
49 |
|
50 |
and the file /.credentials can only be read by root. In there is my |
51 |
password and username: |
52 |
|
53 |
username=myusername |
54 |
password=mypswd |
55 |
|
56 |
Regards |
57 |
kh |