I have mounted a shared network drive. See below output of
df -h command.
Filesystem Size Used Avail Use% Mounted on /dev/sda1 550G 362G 161G 70% / tmpfs 1.9G 80K 1.9G 1% /dev/shm //10.143.19.121/myfolder/ 1.1T 678G 438G 61% /mnt/extstorage
//10.143.19.121/myfolder/ is the mounted folder from network. I have mounted it by adding the below line under the /etc/fstab/
//10.143.19.121/myfolder/ /mnt/extstorage cifs uid=root,rw,umask=0000,directio,username=MyUser,password=MyPassword123! 0 0
I can access the folder.
[root@caresurvey /]# cd /mnt/extstorage/ [root@caresurvey extstorage]#
But I cannot do operations inside it. Error shown below. It says permission denied.
[root@caresurvey extstorage]# mkdir TestDir mkdir: cannot create directory `TestDir': Permission denied
The permissions on
//10.143.19.121/myfolder/ are properly set to read and write for all users within the network. I'm not sure though about the File Format of the said shared folder but as far as I read, it doesn't matter as long as it is shared.
My server is running on CentOS release 6.4 (Final). Am I missing something?
I have also edited the
/etc/ssh/sshd_config to un-comment/enable the
PermitRootLogin yes because I have read a thread that by doing it, a user was able to fix his issue.
Any help will be greatly appreciated. Below is the output of
/dev/sda1 on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) /tmp on /tmp type none (rw,bind) /var/tmp on /var/tmp type none (rw,bind) /home on /home type none (rw,bind) none on /sys/kernel/config type configfs (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev) //10.143.19.121/myfolder/ on /mnt/extstorage type cifs (rw) nfsd on /proc/fs/nfsd type nfsd (rw)
EDIT (09-22-2015@02:42PM - GMT+8):
Here is the output of
ls -ld /mnt/extstorage.
drwxr-xr-x 1 root root 0 Jul 10 15:26 /mnt/extstorage
Note that I am running as