Trying to mount windows folder on Linux machine, getting this error. I have a folder called "CheckIn" on windows, I made that folder as Network sharing.
ON lInux, I tried to access that folder by mounting, getting error "Could not resolve mount point".
# mkdir /mnt/winstuff
# smbmount \\windows-machine-ip-addr\CheckIn
Could not resolve mount point
# ps -eaf | grep smb
root 27420 1 0 Dec03 ? 00:00:00 smbd -D
root 32063 30395 0 10:27 pts/6 00:00:00 grep smb
#
12 6775
Finally mounted, I was not pass username/password earlier, now I can access folder, but if I tried to go inside folder, getting "permission denied"
$ mount -t smbfs -o username=xyz,password=xyzp //win-ip-addr/main_folder /mnt/winstuff/
$ cd /mnt/winstuff/
$ ls
main_folder
$ cd main_folder
$
$ ls -l
ls: reading directory .: Permission denied
total 0
$
tried to munt cifs type instead smbfs, but kernel doesnot support cifs type.
Finally mounted, I was not pass username/password earlier, now I can access folder, but if I tried to go inside folder, getting "permission denied"
$ mount -t smbfs -o username=xyz,password=xyzp //win-ip-addr/main_folder /mnt/winstuff/
$ cd /mnt/winstuff/
$ ls
main_folder
$ cd main_folder
$
$ ls -l
ls: reading directory .: Permission denied
total 0
$
You need to give the user read privileges for main_folder. Try changing permissions using chmod.
Thanks, on windows side, I changed permission, still I am getting this error
also I changed using chmod on Linux for main_folder, once I go inside, I can't see anything
I misread one of your previous post. Try using chmod to change permissions on main_folder with -R (recursive) option.
Alternatively, when you are inside main_folder, use chmod with -R on all files using * wildcard.
I did with -R option, no luck, I am getting "permission denied", also I added ,rw,exec,umask=000, still samething
mount -t smbfs -o username=xyz,password=xyzp,rw,exec,umask=000 //win-ip-addr/main_folder /mnt/winstuff/
What happens when you do:
inside main_folder.
Also, goto parent directory of main_folder, and from terminal:
and paste here the line that corresponds to main_folder.
[root@localhost /]# cd /mnt/winstuff/
[root@localhost winstuff]# sudo ls -l
total 4399
drwxr-xr-x 1 root root 4096 Dec 8 16:03 vma22_linux
[root@localhost winstuff]# ls vma22_linux
ls: reading directory vma22_linux: Permission denied
[root@localhost winstuff]# cd vma22_linux
[root@localhost vma22_linux]# sudo ls -l
ls: reading directory .: Permission denied
total 0
[root@localhost vma22_linux]#
[root@localhost vma22_linux]# cd ..
[root@localhost winstuff]# pwd
/mnt/winstuff
[root@localhost winstuff]# chmod -R 755 vma22_linux
chmod: `vma22_linux': Permission denied
[root@localhost winstuff]# cd vma22_linux
[root@localhost vma22_linux]# sudo ls -l
ls: reading directory .: Permission denied
total 0
[root@localhost winstuff]#
[root@localhost winstuff]# mount
/dev/hda2 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
//win-ip-addr/main_folder on /mnt/winstuff type smbfs (0)
[root@localhost winstuff]#
It is working now, what I did was I copied this main_folder into different dir on windows machine, earlier folder is VSS checkout folder, may be because of perm it is not working?.
after I copy that foder into diff new folder, I can access all files.
thanks for help
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Luca T. |
last post by:
Hello,
i need a way to find the home folder of the current user no matter if i am
in Linux or Windows for instance:
* Linux: /home/username
* Windows: C:\Documents and Settings\username
Is...
|
by: tshad |
last post by:
I am trying to access my log files and am running into a permissions
problem.
I am doing the following:
******************************************************************
private void...
|
by: snicks |
last post by:
I'm trying to exec a program external to my ASP.NET app using the following
code. The external app is a VB.NET application.
Dim sPPTOut As String
sPPTOut = MDEPDirStr + sID + ".ppt"
Dim p As...
|
by: pankajit09 |
last post by:
Hello ,
I want to mount Windows in Debian Linux so that I can use Wine.
Please tell me how to do ?
|
by: GNoter |
last post by:
We've a Windows 2003 server; 2 of them in a webfarm (network load balanced, or NLBs).
We have a 3rd server which has an Access database to which the NLBs need access to.
Is there any way to...
|
by: tguclu |
last post by:
Hi there,
I hope this is the right place for my question if not please accept
my
apologies.
In my application I want to mount/umount file system. From GNU C
Library
Reference Manual, for...
|
by: Anthony Irwin |
last post by:
Hi All,
I am currently trying to decide between using python or java and have
a few quick questions about python that you may be able to help with.
#1 Does python have something like javas...
|
by: John Ladasky |
last post by:
Hi folks,
Running Python 2.5 on both a Windows XP laptop, and an Ubuntu Linux
7.04 desktop.
I've gotten tired of maintaining multiple copies of my personal
modules that I use over and over. ...
|
by: Nepomuk |
last post by:
In most modern distributions of Linux and Unix (at least ones with graphical environments like KDE, Gnome or XFCE), you get to mount your partitions easily from the desktop. In some cases however, it...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |