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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.