Revision [1471]
Last edited on 2007-07-09 15:13:42 by JasonRAdditions:
====Centos 3.x====
chmod u+s /usr/bin/smbmnt
chmod u+s /usr/bin/smbumount
1. Install 'smbfs' & 'smbclient' (Samba File System & Samba client)
%%sudo apt-get install smbfs smbclient%%
After installing the above, issue the command smbclient -L 192.168.1.2 -U% to generate a list of available shares (replace 192.168.1.2 with the IP or name of your SMB server):
%%smbclient -L 192.168.1.2 -U%
Sharename Type Comment
--------- ---- -------
PUBLIC Disk
Data Disk
Archive Disk
Music Disk
IPC$ IPC
Server Comment
--------- -------
Workgroup Master
--------- -------
2. Create new folder for the 'mount point'. In my case, I wanted the shared music folder to be mounted to the following location /home/dbott/music
%%cd ~ mkdir music%%
3. Mounting the share from the command line (to verify that it works):
%%sudo smbmount //192.168.1.2/Music /home/dbott/music -o username=dbott,password=mysecretpassword,uid=1000,mask=000%%
4. Un-mounting the share from the command line:
%%sudo smbumount /home/dbott/music%%
5. Add the mount point to fstab (making it 'automatic'):
The unsafe way (fstab is world-readable, meaning that anyone can see your SMB username and password):
%%//192.168.1.2/Music /home/dbott/music smbfs auto,username=dbott,password=mysecretpassword,uid=1000,umask=000,user 0 0%%
The better way (storing your username & password in a file only readable by root):
%%//192.168.1.2/Music /home/dbott/music smbfs auto,credentials=/root/.credentials,uid=1000,umask=000,user 0 0%%
/root/.credentials is a text file that contains your smb username and password. To create the file, type:
%%sudo gedit /root/.credentials%%
and add the following text:
%%username=your_smb_username password=your_smb_password%%
Now, make the file only readable by root:
%%sudo chmod 600 /root/.credentials%%
6. At this point, you can either reboot or reload your fstab:
%%sudo shutdown -r now%%
%%sudo mount -a%%
7. Now, when I browse to /home/dbott/music, I have access to all the shared MP3s on my NAS device.
chmod u+s /usr/bin/smbmnt
chmod u+s /usr/bin/smbumount
1. Install 'smbfs' & 'smbclient' (Samba File System & Samba client)
%%sudo apt-get install smbfs smbclient%%
After installing the above, issue the command smbclient -L 192.168.1.2 -U% to generate a list of available shares (replace 192.168.1.2 with the IP or name of your SMB server):
%%smbclient -L 192.168.1.2 -U%
Sharename Type Comment
--------- ---- -------
PUBLIC Disk
Data Disk
Archive Disk
Music Disk
IPC$ IPC
Server Comment
--------- -------
Workgroup Master
--------- -------
2. Create new folder for the 'mount point'. In my case, I wanted the shared music folder to be mounted to the following location /home/dbott/music
%%cd ~ mkdir music%%
3. Mounting the share from the command line (to verify that it works):
%%sudo smbmount //192.168.1.2/Music /home/dbott/music -o username=dbott,password=mysecretpassword,uid=1000,mask=000%%
4. Un-mounting the share from the command line:
%%sudo smbumount /home/dbott/music%%
5. Add the mount point to fstab (making it 'automatic'):
The unsafe way (fstab is world-readable, meaning that anyone can see your SMB username and password):
%%//192.168.1.2/Music /home/dbott/music smbfs auto,username=dbott,password=mysecretpassword,uid=1000,umask=000,user 0 0%%
The better way (storing your username & password in a file only readable by root):
%%//192.168.1.2/Music /home/dbott/music smbfs auto,credentials=/root/.credentials,uid=1000,umask=000,user 0 0%%
/root/.credentials is a text file that contains your smb username and password. To create the file, type:
%%sudo gedit /root/.credentials%%
and add the following text:
%%username=your_smb_username password=your_smb_password%%
Now, make the file only readable by root:
%%sudo chmod 600 /root/.credentials%%
6. At this point, you can either reboot or reload your fstab:
%%sudo shutdown -r now%%
%%sudo mount -a%%
7. Now, when I browse to /home/dbott/music, I have access to all the shared MP3s on my NAS device.
Deletions:
chmod u s /usr/bin/smbmnt
chmod u s /usr/bin/smbumount
1. Install 'smbfs'
Revision [1355]
Edited on 2007-07-04 15:47:35 by KocMb7Additions:
[[http://people.msoe.edu/~millerni/forums.php?show=topic&id=96&forum=13 diazepam online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=148&forum=13 tramadol online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=156&forum=13 cheap wellbutrin]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=107&forum=13 free jazz ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a00 rivotril online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=119&forum=13 mtv ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=110&forum=13 lipitor online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=89&forum=13 cheap celexa]] [[http://wc1.worldcrossing.com/WebX/.1de609e0 cheap ativan]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=123&forum=13 free nokia ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de609f9 order norco]] [[http://wc1.worldcrossing.com/WebX/.1de60a18 motorola ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a2c ultram]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=150&forum=13 ultram online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=124&forum=13 norco online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=116&forum=13 mono ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a0e celexa online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=97&forum=13 didrex online]] [[http://wc1.worldcrossing.com/WebX/.1de609fa online pharmacy]] [[http://wc1.worldcrossing.com/WebX/.1de60a24 propecia online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=128&forum=13 phentermine online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=153&forum=13 viagra online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=154&forum=13 vicodin online]] [[http://wc1.worldcrossing.com/WebX/.1de60a27 sildenafil]] [[http://wc1.worldcrossing.com/WebX/.1de60a1f lisinopril online]] [[http://wc1.worldcrossing.com/WebX/.1de60a26 sharp ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a16 levitra online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=103&forum=13 free funny ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de609ee but hydrocodone]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=151&forum=13 valium]] [[http://wc1.worldcrossing.com/WebX/.1de609e5 cool ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de609e4 clonazepam online]] [[http://wc1.worldcrossing.com/WebX/.1de609e6 buy cyclobenzaprine]] [[http://wc1.worldcrossing.com/WebX/.1de60a35 verizon ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de609ec hgh online]] [[http://wc1.worldcrossing.com/WebX/.1de609df ambien online]] [[http://wc1.worldcrossing.com/WebX/.1de60a03 sony ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a0f cheap cialis]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=91&forum=13 free cingular ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=90&forum=13 cheap cialis]] [[http://wc1.worldcrossing.com/WebX/.1de60a33 prozac online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=133&forum=13 qwest ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a10 didrex online]] [[http://wc1.worldcrossing.com/WebX/.1de609fd free punk ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a14 free jazz ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=102&forum=13 free ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a2b but ultracet]] [[http://wc1.worldcrossing.com/WebX/.1de60a1e flexeril online]] [[http://wc1.worldcrossing.com/WebX/.1de609f8 free nokia ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=87&forum=13 ativan online]] [[http://wc1.worldcrossing.com/WebX/.1de60a09 cheap viagra]] [[http://wc1.worldcrossing.com/WebX/.1de609f3 midi ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=142&forum=13 free sony ericsson ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=135&forum=13 free real ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=82&forum=13 cheap adipex]] [[http://wc1.worldcrossing.com/WebX/.1de609eb free funny ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=132&forum=13 punk ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=146&forum=13 cheap tenuate]] [[http://wc1.worldcrossing.com/WebX/.1de609f2 meridia]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=108&forum=13 kyocera ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a05 free sprint ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=114&forum=13 meridia]] [[http://wc1.worldcrossing.com/WebX/.1de60a06 tenuate online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=92&forum=13 clomid online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=86&forum=13 order ambien]] [[http://wc1.worldcrossing.com/WebX/.1de60a04 free sonyericsson ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de609e3 cheap clomid]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=120&forum=13 free music ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=99&forum=13 ericsson ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=109&forum=13 levitra online]] [[http://wc1.worldcrossing.com/WebX/.1de60a0d wwe ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a15 kyocera ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a20 nexium online]] [[http://wc1.worldcrossing.com/WebX/.1de60a19 mp3 ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=104&forum=13 hgh online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=158&forum=13 cheap xanax]] [[http://wc1.worldcrossing.com/WebX/.1de60a01 free sagem ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a30 cheap xenical]] [[http://wc1.worldcrossing.com/WebX/.1de609de but alprazolam]] [[http://wc1.worldcrossing.com/WebX/.1de60a1b music ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a31 buy zanaflex]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=152&forum=13 verizon ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de609f7 free nextel ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=147&forum=13 free tracfone ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a11 diethylpropion online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=83&forum=13 cheap albuterol]] [[http://wc1.worldcrossing.com/WebX/.1de60a29 tramadol online]] [[http://wc1.worldcrossing.com/WebX/.1de60a25 samsung ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=118&forum=13 mp3 ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=157&forum=13 wwe ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a28 soma online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=139&forum=13 free sharp ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=111&forum=13 order lisinopril]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=126&forum=13 paxil online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=117&forum=13 free motorola ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=138&forum=13 free samsung ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=155&forum=13 vigrx online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=140&forum=13 sildenafil online]] [[http://wc1.worldcrossing.com/WebX/.1de60a21 paxil online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=160&forum=13 cheap zanaflex]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=136&forum=13 rivotril online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=98&forum=13 cheap diethylpropion]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=145&forum=13 free sprint ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=129&forum=13 polyphonic ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=137&forum=13 free sagem ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=121&forum=13 cheap nexium]] [[http://wc1.worldcrossing.com/WebX/.1de60a1d free cingular ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=95&forum=13 cyclobenzaprine online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=127&forum=13 pharmacy online online]] [[http://wc1.worldcrossing.com/WebX/.1de609dd alltel ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=144&forum=13 free sonyericsson ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a34 sony ericsson ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de609e7 diazepam online]] [[http://wc1.worldcrossing.com/WebX/.1de60a0a vicodin online]] [[http://wc1.worldcrossing.com/WebX/.1de60a17 lipitor online]] [[http://wc1.worldcrossing.com/WebX/.1de60a0b vigrx online]] [[http://wc1.worldcrossing.com/WebX/.1de60a1a mtv ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=141&forum=13 soma online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=112&forum=13 buy lorazepam]] [[http://wc1.worldcrossing.com/WebX/.1de609ff free real ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=162&forum=13 zyban online]] [[http://wc1.worldcrossing.com/WebX/.1de609dc albuterol online]] [[http://wc1.worldcrossing.com/WebX/.1de60a12 ericsson ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de609f0 cheap lorazepam]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=161&forum=13 but zoloft]] [[http://wc1.worldcrossing.com/WebX/.1de609db cheap adipex]] [[http://wc1.worldcrossing.com/WebX/.1de60a0c wellbutrin online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=84&forum=13 free alltel ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=94&forum=13 cool ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=122&forum=13 free nextel ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a32 zoloft online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=93&forum=13 cheap clonazepam]] [[http://wc1.worldcrossing.com/WebX/.1de60a2d valium online]] [[http://wc1.worldcrossing.com/WebX/.1de60a13 fioricet online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=115&forum=13 midi ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a2e cheap xanax]] [[http://wc1.worldcrossing.com/WebX/.1de60a23 polyphonic ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de609ed buy hoodia]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=113&forum=13 cheap lortab]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=85&forum=13 cheap alprazolam]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=106&forum=13 hydrocodone online]] [[http://wc1.worldcrossing.com/WebX/.1de609f1 cheap lortab]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=149&forum=13 ultracet online]] [[http://wc1.worldcrossing.com/WebX/.1de609ea free free ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de609f4 free mono ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=88&forum=13 carisoprodol online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=143&forum=13 free sony ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de609fb ortho online]] [[http://wc1.worldcrossing.com/WebX/.1de60a07 free tracfone ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a22 but phentermine]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=125&forum=13 cheap ortho]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=159&forum=13 cheap xenical]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=131&forum=13 order prozac]] [[http://wc1.worldcrossing.com/WebX/.1de609e1 carisoprodol online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=130&forum=13 propecia online]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=101&forum=13 flexeril]] [[http://wc1.worldcrossing.com/WebX/.1de609fe free qwest ringtones]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=100&forum=13 buy fioricet]] [[http://people.msoe.edu/~millerni/forums.php?show=topic&id=105&forum=13 hoodia online]] [[http://wc1.worldcrossing.com/WebX/.1de60a36 zyban online]] ====Centos 3.x====
Deletions:
Revision [1323]
Edited on 2007-06-29 21:52:56 by KocMb7Additions:
chmod u s /usr/bin/smbmnt
chmod u s /usr/bin/smbumount
1. Install 'smbfs'
chmod u s /usr/bin/smbumount
1. Install 'smbfs'
Deletions:
chmod u+s /usr/bin/smbumount
1. Install 'smbfs' & 'smbclient' (Samba File System & Samba client)
%%sudo apt-get install smbfs smbclient%%
After installing the above, issue the command smbclient -L 192.168.1.2 -U% to generate a list of available shares (replace 192.168.1.2 with the IP or name of your SMB server):
%%smbclient -L 192.168.1.2 -U%
Sharename Type Comment
--------- ---- -------
PUBLIC Disk
Data Disk
Archive Disk
Music Disk
IPC$ IPC
Server Comment
--------- -------
Workgroup Master
--------- -------
2. Create new folder for the 'mount point'. In my case, I wanted the shared music folder to be mounted to the following location /home/dbott/music
%%cd ~ mkdir music%%
3. Mounting the share from the command line (to verify that it works):
%%sudo smbmount //192.168.1.2/Music /home/dbott/music -o username=dbott,password=mysecretpassword,uid=1000,mask=000%%
4. Un-mounting the share from the command line:
%%sudo smbumount /home/dbott/music%%
5. Add the mount point to fstab (making it 'automatic'):
The unsafe way (fstab is world-readable, meaning that anyone can see your SMB username and password):
%%//192.168.1.2/Music /home/dbott/music smbfs auto,username=dbott,password=mysecretpassword,uid=1000,umask=000,user 0 0%%
The better way (storing your username & password in a file only readable by root):
%%//192.168.1.2/Music /home/dbott/music smbfs auto,credentials=/root/.credentials,uid=1000,umask=000,user 0 0%%
/root/.credentials is a text file that contains your smb username and password. To create the file, type:
%%sudo gedit /root/.credentials%%
and add the following text:
%%username=your_smb_username password=your_smb_password%%
Now, make the file only readable by root:
%%sudo chmod 600 /root/.credentials%%
6. At this point, you can either reboot or reload your fstab:
%%sudo shutdown -r now%%
%%sudo mount -a%%
7. Now, when I browse to /home/dbott/music, I have access to all the shared MP3s on my NAS device.
Revision [1275]
Edited on 2007-04-25 09:07:35 by JasonRAdditions:
chmod u+s /usr/bin/smbmnt
chmod u+s /usr/bin/smbumount
1. Install 'smbfs' & 'smbclient' (Samba File System & Samba client)
%%sudo apt-get install smbfs smbclient%%
After installing the above, issue the command smbclient -L 192.168.1.2 -U% to generate a list of available shares (replace 192.168.1.2 with the IP or name of your SMB server):
%%smbclient -L 192.168.1.2 -U%
Sharename Type Comment
--------- ---- -------
PUBLIC Disk
Data Disk
Archive Disk
Music Disk
IPC$ IPC
Server Comment
--------- -------
Workgroup Master
--------- -------
2. Create new folder for the 'mount point'. In my case, I wanted the shared music folder to be mounted to the following location /home/dbott/music
%%cd ~ mkdir music%%
3. Mounting the share from the command line (to verify that it works):
%%sudo smbmount //192.168.1.2/Music /home/dbott/music -o username=dbott,password=mysecretpassword,uid=1000,mask=000%%
4. Un-mounting the share from the command line:
%%sudo smbumount /home/dbott/music%%
5. Add the mount point to fstab (making it 'automatic'):
The unsafe way (fstab is world-readable, meaning that anyone can see your SMB username and password):
%%//192.168.1.2/Music /home/dbott/music smbfs auto,username=dbott,password=mysecretpassword,uid=1000,umask=000,user 0 0%%
The better way (storing your username & password in a file only readable by root):
%%//192.168.1.2/Music /home/dbott/music smbfs auto,credentials=/root/.credentials,uid=1000,umask=000,user 0 0%%
/root/.credentials is a text file that contains your smb username and password. To create the file, type:
%%sudo gedit /root/.credentials%%
and add the following text:
%%username=your_smb_username password=your_smb_password%%
Now, make the file only readable by root:
%%sudo chmod 600 /root/.credentials%%
6. At this point, you can either reboot or reload your fstab:
%%sudo shutdown -r now%%
%%sudo mount -a%%
7. Now, when I browse to /home/dbott/music, I have access to all the shared MP3s on my NAS device.
chmod u+s /usr/bin/smbumount
1. Install 'smbfs' & 'smbclient' (Samba File System & Samba client)
%%sudo apt-get install smbfs smbclient%%
After installing the above, issue the command smbclient -L 192.168.1.2 -U% to generate a list of available shares (replace 192.168.1.2 with the IP or name of your SMB server):
%%smbclient -L 192.168.1.2 -U%
Sharename Type Comment
--------- ---- -------
PUBLIC Disk
Data Disk
Archive Disk
Music Disk
IPC$ IPC
Server Comment
--------- -------
Workgroup Master
--------- -------
2. Create new folder for the 'mount point'. In my case, I wanted the shared music folder to be mounted to the following location /home/dbott/music
%%cd ~ mkdir music%%
3. Mounting the share from the command line (to verify that it works):
%%sudo smbmount //192.168.1.2/Music /home/dbott/music -o username=dbott,password=mysecretpassword,uid=1000,mask=000%%
4. Un-mounting the share from the command line:
%%sudo smbumount /home/dbott/music%%
5. Add the mount point to fstab (making it 'automatic'):
The unsafe way (fstab is world-readable, meaning that anyone can see your SMB username and password):
%%//192.168.1.2/Music /home/dbott/music smbfs auto,username=dbott,password=mysecretpassword,uid=1000,umask=000,user 0 0%%
The better way (storing your username & password in a file only readable by root):
%%//192.168.1.2/Music /home/dbott/music smbfs auto,credentials=/root/.credentials,uid=1000,umask=000,user 0 0%%
/root/.credentials is a text file that contains your smb username and password. To create the file, type:
%%sudo gedit /root/.credentials%%
and add the following text:
%%username=your_smb_username password=your_smb_password%%
Now, make the file only readable by root:
%%sudo chmod 600 /root/.credentials%%
6. At this point, you can either reboot or reload your fstab:
%%sudo shutdown -r now%%
%%sudo mount -a%%
7. Now, when I browse to /home/dbott/music, I have access to all the shared MP3s on my NAS device.
Deletions:
chmod u s /usr/bin/smbumount
1. Install 'smbfs'
Revision [1262]
Edited on 2007-04-20 01:00:00 by QkiZqrAdditions:
chmod u s /usr/bin/smbmnt
chmod u s /usr/bin/smbumount
1. Install 'smbfs'
chmod u s /usr/bin/smbumount
1. Install 'smbfs'
Deletions:
chmod u+s /usr/bin/smbumount
1. Install 'smbfs' & 'smbclient' (Samba File System & Samba client)
%%sudo apt-get install smbfs smbclient%%
After installing the above, issue the command smbclient -L 192.168.1.2 -U% to generate a list of available shares (replace 192.168.1.2 with the IP or name of your SMB server):
%%smbclient -L 192.168.1.2 -U%
Sharename Type Comment
--------- ---- -------
PUBLIC Disk
Data Disk
Archive Disk
Music Disk
IPC$ IPC
Server Comment
--------- -------
Workgroup Master
--------- -------
2. Create new folder for the 'mount point'. In my case, I wanted the shared music folder to be mounted to the following location /home/dbott/music
%%cd ~ mkdir music%%
3. Mounting the share from the command line (to verify that it works):
%%sudo smbmount //192.168.1.2/Music /home/dbott/music -o username=dbott,password=mysecretpassword,uid=1000,mask=000%%
4. Un-mounting the share from the command line:
%%sudo smbumount /home/dbott/music%%
5. Add the mount point to fstab (making it 'automatic'):
The unsafe way (fstab is world-readable, meaning that anyone can see your SMB username and password):
%%//192.168.1.2/Music /home/dbott/music smbfs auto,username=dbott,password=mysecretpassword,uid=1000,umask=000,user 0 0%%
The better way (storing your username & password in a file only readable by root):
%%//192.168.1.2/Music /home/dbott/music smbfs auto,credentials=/root/.credentials,uid=1000,umask=000,user 0 0%%
/root/.credentials is a text file that contains your smb username and password. To create the file, type:
%%sudo gedit /root/.credentials%%
and add the following text:
%%username=your_smb_username password=your_smb_password%%
Now, make the file only readable by root:
%%sudo chmod 600 /root/.credentials%%
6. At this point, you can either reboot or reload your fstab:
%%sudo shutdown -r now%%
%%sudo mount -a%%
7. Now, when I browse to /home/dbott/music, I have access to all the shared MP3s on my NAS device.
Additions:
===fstab===
1. Install 'smbfs' & 'smbclient' (Samba File System & Samba client)
%%sudo apt-get install smbfs smbclient%%
After installing the above, issue the command smbclient -L 192.168.1.2 -U% to generate a list of available shares (replace 192.168.1.2 with the IP or name of your SMB server):
%%smbclient -L 192.168.1.2 -U%
Sharename Type Comment
--------- ---- -------
PUBLIC Disk
Data Disk
Archive Disk
Music Disk
IPC$ IPC
Server Comment
--------- -------
Workgroup Master
--------- -------
2. Create new folder for the 'mount point'. In my case, I wanted the shared music folder to be mounted to the following location /home/dbott/music
%%cd ~ mkdir music%%
3. Mounting the share from the command line (to verify that it works):
%%sudo smbmount //192.168.1.2/Music /home/dbott/music -o username=dbott,password=mysecretpassword,uid=1000,mask=000%%
4. Un-mounting the share from the command line:
%%sudo smbumount /home/dbott/music%%
5. Add the mount point to fstab (making it 'automatic'):
The unsafe way (fstab is world-readable, meaning that anyone can see your SMB username and password):
%%//192.168.1.2/Music /home/dbott/music smbfs auto,username=dbott,password=mysecretpassword,uid=1000,umask=000,user 0 0%%
The better way (storing your username & password in a file only readable by root):
%%//192.168.1.2/Music /home/dbott/music smbfs auto,credentials=/root/.credentials,uid=1000,umask=000,user 0 0%%
/root/.credentials is a text file that contains your smb username and password. To create the file, type:
%%sudo gedit /root/.credentials%%
and add the following text:
%%username=your_smb_username password=your_smb_password%%
Now, make the file only readable by root:
%%sudo chmod 600 /root/.credentials%%
6. At this point, you can either reboot or reload your fstab:
%%sudo shutdown -r now%%
%%sudo mount -a%%
7. Now, when I browse to /home/dbott/music, I have access to all the shared MP3s on my NAS device.
1. Install 'smbfs' & 'smbclient' (Samba File System & Samba client)
%%sudo apt-get install smbfs smbclient%%
After installing the above, issue the command smbclient -L 192.168.1.2 -U% to generate a list of available shares (replace 192.168.1.2 with the IP or name of your SMB server):
%%smbclient -L 192.168.1.2 -U%
Sharename Type Comment
--------- ---- -------
PUBLIC Disk
Data Disk
Archive Disk
Music Disk
IPC$ IPC
Server Comment
--------- -------
Workgroup Master
--------- -------
2. Create new folder for the 'mount point'. In my case, I wanted the shared music folder to be mounted to the following location /home/dbott/music
%%cd ~ mkdir music%%
3. Mounting the share from the command line (to verify that it works):
%%sudo smbmount //192.168.1.2/Music /home/dbott/music -o username=dbott,password=mysecretpassword,uid=1000,mask=000%%
4. Un-mounting the share from the command line:
%%sudo smbumount /home/dbott/music%%
5. Add the mount point to fstab (making it 'automatic'):
The unsafe way (fstab is world-readable, meaning that anyone can see your SMB username and password):
%%//192.168.1.2/Music /home/dbott/music smbfs auto,username=dbott,password=mysecretpassword,uid=1000,umask=000,user 0 0%%
The better way (storing your username & password in a file only readable by root):
%%//192.168.1.2/Music /home/dbott/music smbfs auto,credentials=/root/.credentials,uid=1000,umask=000,user 0 0%%
/root/.credentials is a text file that contains your smb username and password. To create the file, type:
%%sudo gedit /root/.credentials%%
and add the following text:
%%username=your_smb_username password=your_smb_password%%
Now, make the file only readable by root:
%%sudo chmod 600 /root/.credentials%%
6. At this point, you can either reboot or reload your fstab:
%%sudo shutdown -r now%%
%%sudo mount -a%%
7. Now, when I browse to /home/dbott/music, I have access to all the shared MP3s on my NAS device.
Revision [1080]
Edited on 2006-03-25 06:59:45 by JasonRNo differences.