Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
mount -t cifs -o vers=1.0,_netdev,username=y,password=y,uid=1000,gid=1000,ip=192.168.30.149 //100.93.214.220/cifs /home/y
Unable to find suitable address.
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
i understand that in cifs case when share directory is shared to everyone,then normally no uid,gid in linux is needed.right?
yet uid,gid is needed in mount in order to have mount point rw.right?
so in my case user y will has rw access to cifs mounted under /home/y.
ping 100.93.214.220 -work.
//100.93.214.220/cifs work in window
i have everyone on the cifs with full access.
I've had trouble with what I thought was the same syntax on different machines or versions. This is what currently works for me on both Fedora 30 machines:
mount -t cifs //192.168.1.10/Public /mnt -o username=me
mount -t cifs -o vers=1.0,_netdev,username=y,password=y,uid=1000,gid=1000,ip=192.168.30.149 //100.93.214.220/cifs /home/y
Unable to find suitable address.
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Would be nice to post exactly what did you try and what's happened. In this case you need to check /var/log for related messages and also you need to check the other side for info. That may give you much better description.
You also need to check if that IP/port is reachable, if anything was shared on the other side (and also post the details = how and what was shared). Not to speak about firewalls, ports...
Quote:
Originally Posted by lelunicu
i understand that in cifs case when share directory is shared to everyone,then normally no uid,gid in linux is needed.right?
In general false. uid and gid is required if there is a reason to do so, but in your case it is most probably irrelevant, that's why it is not really needed.
Quote:
Originally Posted by lelunicu
yet uid,gid is needed in mount in order to have mount point rw.right?
no.
It depends on how the users and the share were configured on both sides, if AD (or something like that) was involved, if there is a domain and there are still some other ifs...
Quote:
Originally Posted by lelunicu
so in my case user y will has rw access to cifs mounted under /home/y.
It looks like it is not correct, the user does not have any right currently.
Quote:
Originally Posted by lelunicu
ping 100.93.214.220 -work.
This is great, but as you see it is more or less irrelevant too.
Quote:
Originally Posted by lelunicu
//100.93.214.220/cifs work in window
i have everyone on the cifs with full access.
Obviously it does not mean anything if you won't specify the details. Is this another (or the same?) windows, or a lot of different hosts, who is that everyone? How (and where) are these users were configured? What do you mean by "on the cifs"?
Most probably your samba is not configured properly, but without info hard to say anything.
hi,
my laptop loaded the profile from AD.I have windows 10.
I try to mount from a VM in my laptop a share created on my laptop.
Centos 7.
I created cifs share with everyone-full access.
From VM i tried to mount this share from command line-and first error was that in /etc/fstab is not specified any information regarding this cifs share. after i added input in /etc/fstab the error gone.why this requirement?
//100.93.214.220/cifs /home/y cifs rw,credentials=/root/nimic,mapchars,uid=y,gid=y,dir_mode=0750,file_mode=0640,_netdev,vers=1.0,ip=192.168.30.149 0 0
mount -t cifs -o vers=2.0,credentials=/root/nimic //100.93.214.220/cifs /home/y
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs
telnet 100.93.214.220 445
Trying 100.93.214.220...
Connected to 100.93.214.220.
Escape character is '^]'.
more /root/nimic
username=y
password=y
grep y /etc/passwd
y:x:1000:1000::/home/y:/bin/bash
tail /var/log/messages
Feb 4 03:09:06 cadcwebserver kernel: Status code returned 0xc000006d STATUS_LOGON_FAILURE
Feb 4 03:09:06 cadcwebserver kernel: CIFS VFS: Send error in SessSetup = -13
Feb 4 03:09:06 cadcwebserver kernel: CIFS VFS: cifs_mount failed w/return code = -13
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.