need help mounting a samba share in debian squeeze
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
and then i get an error instead of my shared files
Code:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
i assure that the /home/baronobeefdip/share directory exsists and i am using the username and password that exsist on the server's system (the username is baronobeefdip and the password i would like to keep secret)
what am i doing wrong here because something is wrong
and for refernece here is the result from the
Code:
smbtree -N
command
Code:
smbtree -N
WORKGROUP
\\DEBIAN debian floor computer
\\DEBIAN\IPC$ IPC Service (Debian Server Baronobeefdip Bedroom)
\\DEBIAN\homes stuff
MSHOME
\\DEBIAN Debian Server Baronobeefdip Bedroom
\\DEBIAN\IPC$ IPC Service (Debian Server Baronobeefdip Bedroom)
\\DEBIAN\homes stuff
\\BARONOBEEFDIP-DE baronobeefdip-desktop server (Samba, Ubuntu)
\\BARONOBEEFDIP-DE\IPC$ IPC Service (baronobeefdip-desktop server (Samba, Ubuntu))
\\BARONOBEEFDIP-DE\print$ Printer Drivers
i want to the get one that is commented as the "debian floor computer"
and does the username and password have to be on machine that is acting as the server?
Isn't that pretty obvious? How should the server know the user and password of your local machine? Of course you have to have that on the server.
Regarding the slashes, I always use the forward slash (/), as it is standard in Linux/Unix. The variant with the backslashes will work, but since the backslash is a special character you have to escape it. The address of the server would look like this: \\\\server\\share. The variant with forward slashes is a lot more convenient.
well i changed some things to make everything more distinguished, there isn't anything in the network that resembles each other in names so now i have this when i run smbtree -N
Code:
MSHOME
\\FLOOR debian floor computer
\\FLOOR\IPC$ IPC Service (debian floor computer)
\\FLOOR\crazykitty pictures on the floor computer
\\DEBIAN Debian Server Baronobeefdip Bedroom
\\DEBIAN\IPC$ IPC Service (Debian Server Baronobeefdip Bedroom)
\\DEBIAN\pictures pictures on the system
\\BARONOBEEFDIP-DE baronobeefdip-desktop server (Samba, Ubuntu)
\\BARONOBEEFDIP-DE\IPC$ IPC Service (baronobeefdip-desktop server (Samba, Ubuntu))
\\BARONOBEEFDIP-DE\print$ Printer Drivers
i want to connect to the FLOOR server and the crazykitty share i ran your command
Code:
mount -t cifs -o user=baronobeefdip,password=xxxx //FLOOR/crazykitty /home/baronobeefdip/share
i get this
Code:
mount error: could not resolve address for FLOOR: Unknown error
Last edited by baronobeefdip; 05-12-2011 at 10:48 PM.
i have no idea how debian got there, i just opened the file and it was just there, it must be another server on the network that i can't locate or something left behind from another time, i think i know the ip address for the FLOOR server. i ran the ifconfig command and found the inmterface it's using to connect to the LAN and this is what i collected
i'm guessing that the ip address for the server is 192.168.1.104
and if it's not too much trouble how do you find the ip address of a server without physical access to it,i want to be able to find the ip address of the server remotely
i just ran the command again
Code:
mount -t cifs -o user=baronobeefip,password=xxxxxx //FLOOR/crazykitty /home/baronobeefdip/share
and i got this
Code:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
the entered username and password are right so what could the problem be now
Last edited by baronobeefdip; 05-12-2011 at 11:36 PM.
When you issued the ifconfig command on the client then it is the clients IP, not the server's.
If the server is on the same LAN as your client you can find its IP with a scan of the LAN. You can do that (assuming you have nmap installed on the client machine) with
i issued the command on the server not the client so this is the server's ip address. i added it to the /etc/hosts document along with the name of the server FLOOR, saved it and ran this command and LO AND BEHOLD IT WORKED!!!
but the only thing that i want to be able to do is obtain the ip address of the server without physical access to it, i want to obtain it remotely. i did the command on the server to do that
i issued the command on the server not the client so this is the server's ip address.
I am confused about this one, if you issued the command on the server it can't be the client's IP. I hope that this is just a typo.
To get the IP address remotely try the nmap command I recommended. You can run that from any machine on your net that has nmap installed, and it will show up the IPs of every machine in your local subnet that reacts to pings.
as i understand these are the defaults the 192.168.1.1 is the router's ip on average this is always the router's ip and the /24 is short for the subnet, it's applying the default 255.255.255.0
how do you unmount the share? google searching for the answer turned up fruitless
Last edited by baronobeefdip; 05-13-2011 at 01:26 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.