Automount Windows server folders in openSUSE 11.4 client

I have managed to connect to the workgroup, WORKNOW and I can connect to the
server, PIECEOFSHTSRVR with samba, which I had to log into, Yesitsme, with the
password, WannaGetFired which is great.

But I want to be able to mount / connect to the server when the client boots so
that I and then eventually the people in my office I actually like can get
access to any folder I say they can. maybe. As I have important files there,
like my music.

I am confused at one point in the setting the mount in fstab. path_to

After pinging the MS-2003 server, PIECEOFSHTSRVR by name and IP address 192.168.8.112 and getting good responses that should mean I can use either.

but the point that has me worried and I am tired of reinstalling openSUSE 11.4 for minor penalties.

do I use

//192.168.18.112/PIECEOFSHTSRVR /smb://Yesitsme@pieceofshtsrvr//pieceofshtsrvr cifs username=Yesitsme,password=WannaGetFired,_netdev 0 0

or

//192.168.18.112/PIECEOFSHTSRVR /smb://Yesitsme@pieceofshtsrvr//pieceofshtsrvr smb username=Yesitsme,password=WannaGetFired,_netdev 0 0

Yes I am American and no fan of Bu(ll)sh(it)

On 07/19/2011 09:06 AM, China Jobs wrote:

> Yes I am American

South, Central or North?


DD
Caveat-Hardware-Software
openSUSE®, the “German Engineered Automobiles” of operating systems!

1/4 Rosebud Souix and …

do I use

//192.168.18.112/PIECEOFSHTSRVR /smb://Yesitsme@pieceofshtsrvr//pieceofshtsrvr cifs username=Yesitsme,password=WannaGetFired,_netdev 0 0

or

//192.168.18.112/PIECEOFSHTSRVR /smb://Yesitsme@pieceofshtsrvr//pieceofshtsrvr smb username=Yesitsme,password=WannaGetFired,_netdev 0 0

Neither.

//192.168.18.112/sharename /path/to/mount/ cifs username=Yesitsme,password=WannaGetFired,_netdev 0 0

You can use the server’s name in place of the IP address if preferred.

BTW, for security reasons, it is generally preferred to hide the username and password credentials within a read-only file, and use this form instead

//192.168.18.112/sharename /path/to/mount/ cifs credentials=/path/to/.credentials,_netdev,uid=client_user,gid=users   0 0

with the necessary credentials in a text file

username=Yesitsme
password=WannaGetFired

On 07/19/2011 10:36 AM, China Jobs wrote:
> DenverD;2366074 Wrote:
>> On 07/19/2011 09:06 AM, China Jobs wrote:
>>
>>> Yes I am American
>>
>> South, Central or North?
>
> 1/4 Rosebud Souix and …

ah, so by “American” you actually meant “North American” or if you
wished to be precise maybe you meant USA? (and thereby exclude
Bermuda, Canada, Greenland, Mexico, Saint Pierre and Miquelon as well as
Central and South Americans)

i have to question if you meant USA because i do not know if the
Rosebuds extended into what is now Canada (i know some Souix did)…

i guess, i don’t understand why citizens of the USA so often obfuscate
their homeland with the overly generic “American” nomenclature…neither
Mexicans nor Canadians do so but they are fully as “American” as anyone
in South Dakota or any other of the fifty.


DD
Caveat-Hardware-Software
openSUSE®, the “German Engineered Automobiles” of operating systems!

no, by American I mean I will be waving goodbye to immigrants who arrived after to 1490. North, Central, or South.

On 07/19/2011 01:31 PM, DenverD wrote:
> On 07/19/2011 10:36 AM, China Jobs wrote:
>> DenverD;2366074 Wrote:
>>> On 07/19/2011 09:06 AM, China Jobs wrote:
>>>
>>>> Yes I am American
>>>
>>> South, Central or North?
>>
>> 1/4 Rosebud Souix and …
>
> ah, so by “American” you actually meant “North American” or if you
> wished to be precise maybe you meant USA? (and thereby exclude
> Bermuda, Canada, Greenland, Mexico, Saint Pierre and Miquelon as well as
> Central and South Americans)
>
> i have to question if you meant USA because i do not know if the
> Rosebuds extended into what is now Canada (i know some Souix did)…
>
> i guess, i don’t understand why citizens of the USA so often obfuscate
> their homeland with the overly generic “American” nomenclature…neither
> Mexicans nor Canadians do so but they are fully as “American” as anyone
> in South Dakota or any other of the fifty.
>

For me it’s surprising that you mention Greenland as part of America.
Could you elaborate?

Vahis

http://waxborg.servepics.com
openSUSE 11.2 (x86_64) 2.6.31.14-0.8-default “Evergreen” main host
openSUSE 11.4 (x86_64) 2.6.37.6-0.5-desktop in VirtualBox
openSUSE 11.4 (i586) 2.6.39.2-36-desktop “Tumbleweed” in EeePC 900

On 07/19/2011 01:31 PM, DenverD wrote:
> On 07/19/2011 10:36 AM, China Jobs wrote:
>> DenverD;2366074 Wrote:
>>> On 07/19/2011 09:06 AM, China Jobs wrote:
>>>
>>>> Yes I am American
>>>
>>> South, Central or North?
>>
>> 1/4 Rosebud Souix and …
>
> ah, so by “American” you actually meant “North American” or if you
> wished to be precise maybe you meant USA? (and thereby exclude
> Bermuda, Canada, Greenland, Mexico, Saint Pierre and Miquelon as well as
> Central and South Americans)
>
> i have to question if you meant USA because i do not know if the
> Rosebuds extended into what is now Canada (i know some Souix did)…
>
> i guess, i don’t understand why citizens of the USA so often obfuscate
> their homeland with the overly generic “American” nomenclature…neither
> Mexicans nor Canadians do so but they are fully as “American” as anyone
> in South Dakota or any other of the fifty.
>

I just learned that in addition to Greenland you are wrong also about
Saint Pierre and Miquelon.

Vahis

http://waxborg.servepics.com
openSUSE 11.2 (x86_64) 2.6.31.14-0.8-default “Evergreen” main host
openSUSE 11.4 (x86_64) 2.6.37.6-0.5-desktop in VirtualBox
openSUSE 11.4 (i586) 2.6.39.2-36-desktop “Tumbleweed” in EeePC 900

On 07/19/2011 12:55 PM, Vahis wrote:
> For me it’s surprising that you mention Greenland as part of America.
> Could you elaborate?

one does not have to get very high in the air over north-western
Greenland to see Canada (been there done that, in a Cessna 172)…many
don’t know that Greenland is on the same North American Plate (tectonic
plate)…

see “the term North America is also used to refer to Canada, Mexico, the
United States, and Greenland” in http://en.wikipedia.org/wiki/North_america


DD
Caveat-Hardware-Software
openSUSE®, the “German Engineered Automobiles” of operating systems!

On 07/19/2011 01:07 PM, Vahis wrote:
> I just learned that in addition to Greenland you are wrong also about
> Saint Pierre and Miquelon.

read my cite and i will read yours…when you provide it…


DD
Caveat-Hardware-Software
openSUSE®, the “German Engineered Automobiles” of operating systems!

On 07/19/2011 01:06 PM, China Jobs wrote:

> no, by American I mean I will be waving goodbye to immigrants who
> arrived after to 1490. North, Central, or South.

fighting terrorism and oppressive, land grabbing regimes since
1492–right on!


DD
Caveat-Hardware-Software
openSUSE®, the “German Engineered Automobiles” of operating systems!

R i g h t

Okay well it seems we took a left turn here somewhere. lets look at a map &
check history books later. <attempt at bringing the subject back to the real
issue at hand>

so you mention that it would be better for me to create a .credentials file and
put the username and password there, so it would be more secure. Thanks, that
is an excellent idea. I can change the username & password, so researchers
cant get access to my music and the office manager cant sift through everyones
music files.

so since I am not nearly as experienced as you guys…you are guys right?
anyway. where should I put the .credentials file? /etc or ???

There is also one other point. I know that Swerdna writes /path_to/mount: The
full path to the mount in the Linux client. Since I want to connect to
192.168.18.112/PIECEOFSHTSRVR or I could use a diffent share name like SERVER
(not the real IP or server name btw) I wouldappreciate it if you would clarify
that the mount in /path/to/mount are commands and not files or folders.

After this we can go back to geopolitics, economics, and history like how these
places BeGgEd Denmark to be part of their Empire. No shots were fired, no
force used, they just said, “hey your cool, make us part of your
empire…please”

Accra, Balasore, Coromandel Coast, Danish Gold Coast, Danish India, Danish
Estonia, Faroe Islands, Fort Prinzenstein, Gondalpara, Greenland, Iceland,
Nicobar Islands, Serampore, Tharangambadi, United States Virgin Islands, Danish
West Indies

http://en.wikipedia.org/wiki/Category:Former_Danish_colonies

On 07/19/2011 02:24 PM, DenverD wrote:
> On 07/19/2011 01:07 PM, Vahis wrote:
>> I just learned that in addition to Greenland you are wrong also about
>> Saint Pierre and Miquelon.
>
> read my cite and i will read yours…when you provide it…
>

I’ll quote here an excerpt of what I replied to:

“ah, so by “American” you actually meant “North American” or if you
wished to be precise maybe you meant USA? (and thereby exclude
Bermuda, Canada, Greenland, Mexico, Saint Pierre and Miquelon as well as
Central and South Americans)”

In daily life people being European Asian or American or whatever
are not referring to the tectonic plates they live on.

They talk about countries or nationalities.

What sort of Americans do you call the people living in Greenland?
North Americans?

Vahis

http://waxborg.servepics.com
openSUSE 11.2 (x86_64) 2.6.31.14-0.8-default “Evergreen” main host
openSUSE 11.4 (x86_64) 2.6.37.6-0.5-desktop in VirtualBox
openSUSE 11.4 (i586) 2.6.39.2-36-desktop “Tumbleweed” in EeePC 900

You think you guys got problems, at least half the known world think everyone from the uk is either english, scottish or irish (or immigrants?), I don’t live in any of these places but I do live in the uk … can’t ever see myself getting into an argument about it with people on a technical help forum though

Each to their own I suppose

On 07/19/2011 06:21 PM, Vahis wrote:

> In daily life people being European Asian or American or whatever
> are not referring to the tectonic plates they live on.
> They talk about countries or nationalities.

or continents (Africa, Antarctica, Asia, Australia, Europe, North
America, and South America)…Greenland is an island off the coast of
North American…

> What sort of Americans do you call the people living in Greenland?
> North Americans?

though they are as North American as anyone in Mexico (new or old), they
call themselves Greenlanders or Inuit, just like the North Americans in
Mexico call themselves Mexicans, and the North Americans in Canada call
themselves Canadians…

i invite you again to read and educate yourself on the Americas:
http://en.wikipedia.org/wiki/North_america


DD
Caveat-Hardware-Software
openSUSE®, the “German Engineered Automobiles” of operating systems!

On 07/19/2011 05:06 PM, China Jobs wrote:
>
> <attempt at bringing the subject back to the real issue at hand>

do hope you get the answer, i can’t help on that at all…sorry (working
with Windows is not my ‘thing’…i do read some of the posts trying to
learn something, sometimes…and saw you declaration on being American,
and just wondered which)

> http://en.wikipedia.org/wiki/Category:Former_Danish_colonies

you need not assume that i’m smugly thinking i’m Danish and therefore
clean of the past sins of white european ‘settlers’…

nope, i was born on the land previously owned by the Chickasaw Nation,
and though living elsewhere remain a citizen of the USA…

when folks here ask me where i’m from, if i say “i’m American” they ask
which one, so i say “i’m from the USA” :slight_smile:


DD
Caveat-Hardware-Software
openSUSE®, the “German Engineered Automobiles” of operating systems!

where should I put the .credentials file? /etc or ???

You could put it in your main user’s home directory, or within some root-owned location (such as /etc). The point is put it somewhere where others can’t get at it.

There is also one other point. I know that Swerdna writes /path_to/mount: The
full path to the mount in the Linux client. Since I want to connect to
192.168.18.112/PIECEOFSHTSRVR or I could use a diffent share name like SERVER
(not the real IP or server name btw) I wouldappreciate it if you would clarify
that the mount in /path/to/mount are commands and not files or folders.

The ‘/path/to/mount’ simply defines where you would like the cifs (samba) shares to be mounted eg you could make a directory ‘/mnt/windows/share1’ with

mkdir -p /mnt/windows/share1

then create/adjust the fstab entry so that one of your cifs shares gets mounted there. (You will have to adjust the permissions so that the required users can access it with write access if required. You can create a group for each share if desired, but I’ll leave that for you to work out).

okay so I made a directory for the mount

mkdir -p /mnt/windows/

then wrote a text file, saved it in /etc, renamed it. to .credentials

added the line in /etc/fstab

/dev/disk/by-id/ata-WDC_WD3200KS-00PFB0_WD-WCAPD2785035-part6 swap swap defaults 0 0
/dev/disk/by-id/ata-WDC_WD3200KS-00PFB0_WD-WCAPD2785035-part7 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-WDC_WD3200KS-00PFB0_WD-WCAPD2785035-part8 /home ext4 acl,user_xattr 1 2
/dev/disk/by-id/ata-WDC_WD3200KS-00PFB0_WD-WCAPD2785035-part2 /windows/C ntfs-3g defaults,locale=en_US.UTF-8 0 0
/dev/disk/by-id/ata-WDC_WD3200KS-00PFB0_WD-WCAPD2785035-part3 /windows/D ntfs-3g defaults,locale=en_US.UTF-8 0 0
/dev/disk/by-id/ata-WDC_WD3200KS-00PFB0_WD-WCAPD2785035-part5 /windows/E ntfs-3g defaults,locale=en_US.UTF-8 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
//192.168.18.112/winserver /root/mnt/windows/winserver cifs credentials=/root/etc/.credentials,_netdev,uid=client_user,gid=users 0 0

rebooted, logged in, opened file manager to check.

I see the link, click on it and nothing. So then I think it might be the credentials file and go to a simplier form

//192.168.18.112/winserver /root/mnt/windows/winserver cifs username=Areyounuts,password=Yesiam,_netdev 0 0

again, I see it but nothing works when I click on it. okay drop /root

//192.168.18.112/winserver /mnt/windows/winserver cifs credentials=/etc/.credentials,_netdev,uid=client_user,gid=users 0 0

//192.168.18.112/winserver /mnt/windows/winserver cifs username=Areyounuts,password=Yesiam,_netdev 0 0

again, I see it but nothing works when I click on it. maybe the share is omitted in /mnt

//192.168.18.112/winserver /mnt/windows/ cifs credentials=/etc/.credentials,_netdev,uid=client_user,gid=users 0 0

//192.168.18.112/winserver /mnt/windows/ cifs username=Areyounuts,password=Yesiam,_netdev 0 0

By the way, its not the real IP, share, mount, username, or password

so what did I miss and by how far?

On 07/20/2011 04:36 PM, China Jobs wrote:
>
> okay so I made a directory for the mount
>
> mkdir -p /mnt/windows/
>

<snip>

> //192.168.18.112/winserver /root/mnt/windows/winserver cifs

Where does /root/mnt/windows in that line come from?

You made /mnt/windows

/mnt is under “root” i.e. /

It’s the root of the filesystem tree.

A directory called root is something users have nothing to do with.
It’s also under /

You don’t make mount points in directory called root but under / which
is the root of the directory tree.

Vahis

http://waxborg.servepics.com
openSUSE 11.2 (x86_64) 2.6.31.14-0.8-default “Evergreen” main host
openSUSE 11.4 (x86_64) 2.6.37.6-0.5-desktop in VirtualBox
openSUSE 11.4 (i586) 2.6.39.2-36-desktop “Tumbleweed” in EeePC 900

On 07/20/2011 06:15 PM, Vahis wrote:

http://waxborg.servepics.com

wow! nice site!! so nice i followed your link earlier today and glanced
at what popped up and it was SO professional i though it was a
commercial web site (selling really neat trash cans)…and, i promptly
‘reported’ your sig as violating the T&Cs (no ads)…

so, i say sorry to the mod(s) whose time i wasted as i praise your web
design ability!!


DD
Caveat-Hardware-Software
openSUSE®, the “German Engineered Automobiles” of operating systems!