Linux-mint wrong file-attributes over Samba-shares
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linux Mint |
New
|
Undecided
|
Unassigned |
Bug Description
1. Situation :
- home network with 2 computers :
- name : Googol-5; ip-address : 192.168.178.36 (fixed)
- name : Googol-6; ip-address : 192.168.178.34 (fixed)
- both Linux mint 18.2 Sonya with Mate-desktop
- Linux Kernel : 4.10.0.38 (important part!)
2. Get Samba working : (no problems here. Just FYI)
- menu > administration > software manager : search for "samba"
- install System-config-samba
- install Samba
- configure samba :
- sudo touch /etc/libuser.conf
- menu > samba (samba server configuration)
- preferences > server settings : workgroup : "workgroup"
- add a samba share ("+" sign) : directory : "/home/rob"; share name : "dd"; writable; visible; access : allow access to everyone
- add 1 line in the [dd] section (bottom of the file) in /etc/samba/smb.conf : "force user = rob"
- sudo service nmbd (re)start
- sudo service smbd (re)start
- adjust firewall setting :
- menu > preferences > firewall configuration :
- rules > add :
Policy : allow (or limit); Direction : In; Category : Network; Subcategory : File Transfer; Application : Samba <add>
- Create mount-point folders ;
- sudo mkdir /media/rob/Googol-6
- Create file for lunux credentials :
- sudo touch /etc/linux_
- sudo chmod 000 /etc/linux_
- sudo xed /etc/linux_
"
username=rob
password=...
domain=workgroup
"
- add lines in /etc/fstab at the bottom :
- sudo xed /etc/fstab (add at the bottom of the file)
"
//192.168.178.34/dd /media/rob/Googol-6 cifs credentials=
#
"
- sudo mount -a (or reboot the system)
3. Result in terminal (correct !!) :
rob@Googol-5 ~ $ ls -la /media/rob/Googol-6
total 26728
drwxr-xr-x+ 19 rob rob 0 Jan 28 10:53 .
drwxr-xr-x 6 root root 4096 Jan 28 07:30 ..
-rw-rw-r--+ 1 rob rob 27315065 Jan 28 09:48 alle_files_
-rw-------+ 1 rob rob 143 Jan 28 10:52 .bash_history
-rw-r--r--+ 1 rob rob 220 Jan 28 08:51 .bash_logout
-rw-r--r--+ 1 rob rob 4000 Jan 28 08:51 .bashrc
drwxr-xr-x+ 7 rob rob 0 Jan 28 10:34 .cache
drwxr-xr-x+ 13 rob rob 0 Jan 28 10:45 .config
drwx------+ 3 rob rob 0 Jan 28 09:45 .dbus
drwxr-xr-x+ 2 rob rob 0 Jan 28 09:45 Desktop
-rw-r--r--+ 1 rob rob 23 Jan 28 09:45 .dmrc
drwxr-xr-x+ 2 rob rob 0 Jan 28 09:45 Documents
drwxr-xr-x+ 2 rob rob 0 Jan 28 09:45 Downloads
drwx------+ 2 rob rob 0 Jan 28 10:54 .gconf
-rw-r-----+ 1 rob rob 0 Jan 28 10:57 .gksu.lock
-rw-------+ 1 rob rob 978 Jan 28 10:53 .ICEauthority
drwxrwxr-x+ 2 rob rob 0 Jan 28 10:34 .icons
drwxrwxr-x+ 5 rob rob 0 Jan 28 09:46 .linuxmint
drwx------+ 3 rob rob 0 Jan 28 09:45 .local
drwxr-xr-x+ 3 rob rob 0 Jan 28 08:51 .mozilla
drwxr-xr-x+ 2 rob rob 0 Jan 28 09:45 Music
drwxr-xr-x+ 2 rob rob 0 Jan 28 09:45 Pictures
-rw-r--r--+ 1 rob rob 655 Jan 28 08:51 .profile
drwxr-xr-x+ 2 rob rob 0 Jan 28 09:45 Public
-rw-r--r--+ 1 rob rob 0 Jan 28 09:47 .sudo_as_
drwxr-xr-x+ 2 rob rob 0 Jan 28 09:45 Templates
drwxrwxr-x+ 2 rob rob 0 Jan 28 10:34 .themes
drwxr-xr-x+ 2 rob rob 0 Jan 28 09:45 Videos
-rw-------+ 1 rob rob 53 Jan 28 10:53 .Xauthority
-rw-rw-r--+ 1 rob rob 131 Jan 28 09:50 .xinputrc
-rw-------+ 1 rob rob 4704 Jan 28 10:59 .xsession-errors
-rw-------+ 1 rob rob 5360 Jan 28 10:52 .xsession-
rob@Googol-5 ~ $
4. Updating to later version of Linux-kernel ( 4.13.0.31 ) (any 4.13.. will reproduce this error) :
5. Result in terminal (fault !!) : Group, Owner and Permissions are NOT correct:
rob@Googol-5 ~ $ ls -la /media/rob/Googol-6
total 26728
drwxr-xr-x+ 19 root root 0 Jan 28 10:53 .
drwxr-xr-x 6 root root 4096 Jan 28 07:30 ..
-rwxr-xr-x+ 1 root root 27315065 Jan 28 09:48 alle_files_
-rwxr-xr-x+ 1 root root 143 Jan 28 10:52 .bash_history
-rwxr-xr-x+ 1 root root 220 Jan 28 08:51 .bash_logout
-rwxr-xr-x+ 1 root root 4000 Jan 28 08:51 .bashrc
drwxr-xr-x+ 7 root root 0 Jan 28 10:34 .cache
drwxr-xr-x+ 13 root root 0 Jan 28 10:45 .config
drwxr-xr-x+ 3 root root 0 Jan 28 09:45 .dbus
drwxr-xr-x+ 2 root root 0 Jan 28 09:45 Desktop
-rwxr-xr-x+ 1 root root 23 Jan 28 09:45 .dmrc
drwxr-xr-x+ 2 root root 0 Jan 28 09:45 Documents
drwxr-xr-x+ 2 root root 0 Jan 28 09:45 Downloads
drwxr-xr-x+ 2 root root 0 Jan 28 10:54 .gconf
-rwxr-xr-x+ 1 root root 0 Jan 28 10:57 .gksu.lock
-rwxr-xr-x+ 1 root root 978 Jan 28 10:53 .ICEauthority
drwxr-xr-x+ 2 root root 0 Jan 28 10:34 .icons
drwxr-xr-x+ 5 root root 0 Jan 28 09:46 .linuxmint
drwxr-xr-x+ 3 root root 0 Jan 28 09:45 .local
drwxr-xr-x+ 3 root root 0 Jan 28 08:51 .mozilla
drwxr-xr-x+ 2 root root 0 Jan 28 09:45 Music
drwxr-xr-x+ 2 root root 0 Jan 28 09:45 Pictures
-rwxr-xr-x+ 1 root root 655 Jan 28 08:51 .profile
drwxr-xr-x+ 2 root root 0 Jan 28 09:45 Public
-rwxr-xr-x+ 1 root root 0 Jan 28 09:47 .sudo_as_
drwxr-xr-x+ 2 root root 0 Jan 28 09:45 Templates
drwxr-xr-x+ 2 root root 0 Jan 28 10:34 .themes
drwxr-xr-x+ 2 root root 0 Jan 28 09:45 Videos
-rwxr-xr-x+ 1 root root 53 Jan 28 10:53 .Xauthority
-rwxr-xr-x+ 1 root root 131 Jan 28 09:50 .xinputrc
-rwxr-xr-x+ 1 root root 4704 Jan 28 10:59 .xsession-errors
-rwxr-xr-x+ 1 root root 5360 Jan 28 10:52 .xsession-
rob@Googol-5 ~ $
6. reproducable :
- Downgrading to linux Kernel 4.10.0.38 solves the problem