mount cifs shows SGID file permission

Solution Verified - Updated -

Issue

  • When mounting a Windows shared directory via CIFS, the new file's permission becomes "-rwxrwSrwx" but no problem for folder creation.
# mount -t cifs -o username=xxxx,password=xxxx //windowsser/share /mnt

# ls -al
total 17
drwxrwxrwx  4 root root    0 Jun 16  2011 .
drwxr-xr-x 31 root root 4096 Jun 16 14:24 ..
drwxrwxrwx  2 root root 4096 Jun 16  2011 a
-rwxrwSrwx  1 root root    0 Jun 16 15:02 abcd

Environment

  • Red Hat Enterprise Linux 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content