Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
It's very weird that on one of dir, I cannot cd to the dir even it's 700.
There's no issue in /media3/splunkforwarder/etc, I can cd to it; but for /media3/splunkforwarder/etc/auth, there's error, even though /media3/splunkforwarder/etc/auth is 700
good morning userx
userx%voider ⚡ ~ ⚡> mkdir dir700
userx%voider ⚡ ~ ⚡> chmod 700 dir700 -R
userx%voider ⚡ ~ ⚡> cd dir700
userx%voider ⚡ dir700 ⚡> cd
userx%voider ⚡ ~ ⚡> ls -la dir700
total 8
drwx------ 2 userx userx 4096 Jun 12 07:26 .
drwx--x--x 59 userx userx 4096 Jun 12 07:26 ..
userx%voider ⚡ ~ ⚡>
userx%voider ⚡ ~ ⚡> ls -ld dir700
drwx------ 2 userx userx 4096 Jun 12 07:26 dir700
userx%voider ⚡ ~ ⚡>
yours got a +
Code:
[root@test etc]# ls -ld auth
drwx------+ 3 root root 12 Oct 9 2016 auth
what dat + for? bit thing?
found it never mind
Code:
"If the file or directory has extended security
information, the permissions field printed by the
-l option is followed by a '+' character."
This generally means the file is encumbered with access
restrictions outside of the traditional Unix permissions -
likely Access Control List (ACL).
So I'd say you got a look at your access control list for that dir and see what its doing in relationship to govern it.
Does the auth directory happen to be a mount point to a filesystem on another machine?
Use the mount | grep "auth" command to check.
Yes, the FS is on NFS, please check below:
[root@test etc]# df -Ph .
Filesystem Size Used Avail Use% Mounted on
slcfs01:/export/vol01 3.0T 11G 3.0T 1% /media3
[root@test etc]# mount | grep '/media3'
slcfs01:/export/vol01 on /media3 type nfs (rw,rsize=32768,wsize=32768,hard,nolock,timeo=14,noacl,intr,mountvers=3,nfsvers=3,addr=10.240.185.20 )
It appears the folder is accessed through a mounted volume or mount point. Check the mount permission.
Code:
man mount
Good luck.
Yes, the FS is on NFS, please check below:
[root@test etc]# df -Ph .
Filesystem Size Used Avail Use% Mounted on
slcfs01:/export/vol01 3.0T 11G 3.0T 1% /media3
[root@test etc]# mount | grep '/media3'
slcfs01:/export/vol01 on /media3 type nfs (rw,rsize=32768,wsize=32768,hard,nolock,timeo=14,noacl,intr,mountvers=3,nfsvers=3,addr=10.240.185.20 )
I don't think you should generally chmod a directory to an octal number, since it may have other flags set to show it's even a directory, depending on the UNIX/Linux implementation. With directories, I always try to use chmod g+w /path/to/directory etc.
Root privileges are not honored across NFS unless the filesystem is exported with the "no_root_squash" option. Without that option, "root" gets mapped to "nfsnobody", and that ID does not have the needed permissions in your directory.
Root privileges are not honored across NFS unless the filesystem is exported with the "no_root_squash" option. Without that option, "root" gets mapped to "nfsnobody", and that ID does not have the needed permissions in your directory.
Thank you! After enabling no_root_squash, the issue gone away.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.