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