Zentyal Forum, Linux Small Business Server
Zentyal Server => Installation and Upgrades => Topic started by: MyKey0815 on March 16, 2014, 11:22:38 pm
-
I have Mount a new Harddisk on my zentyal 3.3 Server.
In fstab I have following entry:
UUID="48f9011b-4ec5-4eb4-9b7c-567d8644b71a" /HDD/SDB080_3TB ext4 errors=remount-ro,usrquota,grpquota,acl,user_xattr 0 1
I have create a main share called "SDB080_3TB" on "/HDD/SDB080_3TB" - It works and can be create.
Now I want to create a new Folder "DomainFiles" on this HDD and share them with the sharename "DomainFiles" - but the don´t work. The error is
Zentyal could not access to directory '/HDD/SDB080_3TB/DomainFiles': Permission denied
What can I do to fix the Problem? What are the right permissions and owner of subdirectories to manage via Zentyal.
-
Very interesting post on
-
OK - I have spend time to investigate the Problem
I think via the UI of zentyal is it not possible to create Shares on subdirectories if a parent is shared.
I test it follwing:
I Create /media/Folder1 and /media/Folder1/Folder2. Then I create a Share on "Folder1". The I try to make a second share on "Folder2". That´s no possible. Zentyal say "Permission denied".
How can that be Workaround - I Need some root Shares to administrate some applications and want to copy files direkt to Folder-structure.
This behavior still exists in Zentyal 3.4 :-(
-
How can that be Workaround - I Need some root Shares to administrate some applications and want to copy files direkt to Folder-structure.
I would share (only) the top level folder and set the access rights on folder level. For your example: Group_A and Group_B have access to Folder1. Only Group_B has rights to access Folder2.
-
I have Mount a new Harddisk on my zentyal 3.3 Server.
In fstab I have following entry:
UUID="48f9011b-4ec5-4eb4-9b7c-567d8644b71a" /HDD/SDB080_3TB ext4 errors=remount-ro,usrquota,grpquota,acl,user_xattr 0 1
I have create a main share called "SDB080_3TB" on "/HDD/SDB080_3TB" - It works and can be create.
Now I want to create a new Folder "DomainFiles" on this HDD and share them with the sharename "DomainFiles" - but the don´t work. The error is
Zentyal could not access to directory '/HDD/SDB080_3TB/DomainFiles': Permission denied
What can I do to fix the Problem? What are the right permissions and owner of subdirectories to manage via Zentyal.
try with:
sudo chown root:Administrators /HDD/SDB080_3TB/DomainFiles
sudo chmod 770 /HDD/SDB080_3TB/DomainFiles
-
try with:
sudo chown root:Administrators /HDD/SDB080_3TB/DomainFiles
sudo chmod 770 /HDD/SDB080_3TB/DomainFiles
Thank you very much. I tried but the same result: "Permission denied". I can´t understand why no one have found this "bug"?
Is it possible to manage the Shares directly. I think that will be a Workaround for me
-
I would share (only) the top level folder and set the access rights on folder level. For your example: Group_A and Group_B have access to Folder1. Only Group_B has rights to access Folder2.
I have a webapplication that Need two Shares: One as toplevel and one for users area. But for all other purpose I can do that. Thanks
-
Hello:
Could you please show with which options is that second disk mounted?
-
Hello:
Could you please show with which options is that second disk mounted?
In /etc/fstab is following command:
UUID="48f9011b-4ec5-4eb4-9b7c-567d8644b71a" /HDD/SDB080_3TB ext4 errors=remount-ro,usrquota,grpquota,acl,user_xattr 0 1
-
try with:
sudo chown root:Administrators /HDD/SDB080_3TB/DomainFiles
sudo chmod 770 /HDD/SDB080_3TB/DomainFiles
Thank you very much. I tried but the same result: "Permission denied". I can´t understand why no one have found this "bug"?
Is it possible to manage the Shares directly. I think that will be a Workaround for me
very intresting, me works!
please try with:
sudo chown root:Administrator /HDD/SDB080_3TB/DomainFiles
sudo chmod 770 /HDD/SDB080_3TB/DomainFiles
sudo setfacl -b /HDD/SDB080_3TB/DomainFiles
please send me the results of folowing commands:
cat /proc/mounts
cat /proc/filesystems
-
please send me the results of folowing commands:
cat /proc/mounts
cat /proc/filesystems
rootfs / rootfs rw 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
udev /dev devtmpfs rw,relatime,size=8036044k,nr_inodes=2009011,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,noexec,relatime,size=1615880k,mode=755 0 0
/dev/mapper/szx020080--vg-root / ext4 rw,relatime,quota,usrquota,grpquota,errors=remount-ro,data=ordered 0 0
none /sys/fs/cgroup tmpfs rw,relatime,size=4k,mode=755 0 0
none /sys/fs/fuse/connections fusectl rw,relatime 0 0
none /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/kernel/security securityfs rw,relatime 0 0
none /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=51200k 0 0
none /run/shm tmpfs rw,nosuid,nodev,relatime 0 0
none /run/user tmpfs rw,nosuid,nodev,noexec,relatime,size=102400k,mode=755 0 0
none /sys/fs/pstore pstore rw,relatime 0 0
/dev/sda1 /boot ext2 rw,relatime,errors=continue,user_xattr,acl 0 0
/dev/sdb1 /HDD/SDB080_3TB ext4 rw,relatime,quota,usrquota,grpquota,errors=remount-ro,data=ordered 0 0
systemd /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,name=systemd 0 0
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev cgroup
nodev cpuset
nodev tmpfs
nodev devtmpfs
nodev debugfs
nodev securityfs
nodev sockfs
nodev pipefs
nodev anon_inodefs
nodev devpts
ext3
ext4
nodev ramfs
nodev hugetlbfs
vfat
nodev ecryptfs
fuseblk
nodev fuse
nodev fusectl
nodev pstore
nodev mqueue
ext2
If I "chown" with "ebox:ebox" on the "/HDD/SDB080_3TB" then I can create a new subshare one time. If I want create a second sub share the permission denied come again and I must "chown ebox:ebox" again
-
try with:
sudo chown root:Administrators /HDD/SDB080_3TB/DomainFiles
sudo chmod 770 /HDD/SDB080_3TB/DomainFiles
Not able to create the share - permission denied
-
okay than "ebox:ebox"
you can use this for create new Directorys then in GUI create Share:
sudo mkdir | sudo chown ebox | sudo chgrp ebox /HDD/SDB080_3TB/Folder1
sudo mkdir | sudo chown ebox | sudo chgrp ebox /HDD/SDB080_3TB/Folder2
sudo mkdir | sudo chown ebox | sudo chgrp ebox /HDD/SDB080_3TB/Folderx
-
okay than "ebox:ebox"
you can use this for create new Directorys then in GUI create Share:
sudo mkdir | sudo chown ebox | sudo chgrp ebox /HDD/SDB080_3TB/Folder1
sudo mkdir | sudo chown ebox | sudo chgrp ebox /HDD/SDB080_3TB/Folder2
sudo mkdir | sudo chown ebox | sudo chgrp ebox /HDD/SDB080_3TB/Folderx
It only works if i reset the Main-Share (/HDD/SDB080_3TB) - then is it posible to set subshare on a subfolder. Is it a Problem with my permissions if i every time i set the chown ebox:ebox?
-
for existing Directorys use this before Sharing:
sudo chown ebox:ebox /HDD/SDB080_3TB/DomainFilesx
sudo chmod 770 /HDD/SDB080_3TB/DomainFilesx
-
i have tested this on virtual server:
me works if directory permissions following:
owner: root
group: root
permissions: drwxr-xr-x (0755)