LINUX.ORG.RU
ФорумAdmin

Монтирование расшаренного на Proxmox 7.3 хосте по NFS и SMB каталога в контейнере с Alpine 3.14

 , , ,


0

1

Пока что нарываюсь на ошибки.

Вот, как это выглядит на клиенте из-под root:


Alpine-CT100:~# cat /etc/fstab

/dev/cdrom      /media/cdrom    iso9660 noauto,ro 0 0

/dev/usbdisk    /media/usb      vfat    noauto,ro 0 0

192.168.10.2:/storage   /nfs/storage    nfs     auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0

//192.168.10.2/Storage  /mnt/storage    cifs    guest,uid=1000,iocharset=utf8  0  0

Alpine-CT100:~# mount -a

mount.nfs: Operation not permitted

mount: mounting 192.168.10.2:/storage on /nfs/storage failed: Invalid argument

mount error(1): Operation not permitted

Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

mount: permission denied (are you root?)

Alpine-CT100:~#

А вот конфиги на сервере:


root@mr:~# cat /etc/exports

/storage        192.168.10.0/255.255.255.0(rw,sync,no_root_squash,no_subtree_check)



root@mr:~# cat /etc/samba/smb.conf



[global]



   workgroup = WORKGROUP



   interfaces = 192.168.10.0/24 eth0





   log file = /var/log/samba/log.%m



   max log size = 1000



   logging = file



   panic action = /usr/share/samba/panic-action %d



   server role = standalone server



   obey pam restrictions = yes



   unix password sync = yes



   passwd program = /usr/bin/passwd %u

   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .



   usershare allow guests = yes



[homes]

   comment = Home Directories

   browseable = no



   read only = yes



   create mask = 0700



   directory mask = 0700



authentication schemes

   valid users = %S



[Storage]

  comment = Storage share folder

  path = /storage

  browseable = yes

  read only = no

  guest ok = yes

Total Commander и VLC на моём Android-телефоне SMB-шарой пользуются нормально.

★★★★★

Попробовал на Ubuntu-контейнере - примерно то же самое:

root@Ubuntu-CT101:~# cat /etc/fstab
192.168.10.2:/storage   /nfs/storage    nfs     auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0
//192.168.10.2/Storage  /mnt/storage    cifs    guest,uid=1000,iocharset=utf8  0  0
root@Ubuntu-CT101:~# mount -a
mount: /nfs/storage: permission denied.
mount: /mnt/storage: permission denied.
eugrus ★★★★★
() автор топика