Koozali.org: home of the SME Server

New Hard Disk Permission

i-techzone

New Hard Disk Permission
« on: April 21, 2005, 09:53:27 PM »
Hello all,


i would like to add new hdd to my sme box.
My problem is when i insert this command

/dev/hdc1 /data-bank/files vfat uid=techzone,gid=executive,mode=775  1 2

and reboot my sme box it change to mode 755 and only me can write into it. but all my user in group executive can't write it.

i need that all user in executive/5010 group can re-write.

anybody can help me.

thanks in advance ...

i-techzone

New Hard Disk Permission
« Reply #1 on: April 22, 2005, 07:06:19 AM »
Please help me ..

Quail_Linux

New Hard Disk Permission
« Reply #2 on: April 22, 2005, 07:22:40 AM »
Quote from: "i-techzone"
Please help me ..


Hi,
Step by step instructions to add a second disk drive to your SME server:
http://mirror.contribs.org/smeserver/contribs/mblotwijk/HowToGuides/AddExtraHardDisk.htm

HTH

i-techzone

New Hard Disk Permission
« Reply #3 on: April 22, 2005, 08:54:47 AM »
Hi all,

Quail_Linux, people might be angry to me if i'm not looking/find solution in this forum or documentation.

I already follow the step.

my problem here is i have second hdd 80 GB in Fat32 format. inside the hdd already have around 60 GB data. what i want is to put it into my sme box so that i can acces all files including video and mp3.

when i follow the guide starting point at step 6, (after login root and type telinit 1 and eit fstab) it doesn't work for me. i type this command :-

1. chown admin:allstaff /mnt/bigdisk/mp3
it show >> chown: admin:allstaff': invalid group

i have existing group : executive
2. chown admin:executive /mnt/bigdisk/mp3
it show >> chown changing ownership of /mnt/big-disk/mp3': Operation not permitted.

so .. where is the mistake here. i cannot format my second hdd to ext3 because i dont have any spare hdd.

from my experience at RedHat9.0 it works when i push umask 775 and uid:executive,gid:executive at fstab. i can edit and remove file on the second hdd.

why at sme i cannot run all this ...

Thank you in advance.

Quail_Linux

New Hard Disk Permission
« Reply #4 on: April 22, 2005, 09:06:05 AM »
Quote from: "i-techzone"
Hi all,

Quail_Linux, people might be angry to me if i'm not looking/find solution in this forum or documentation.

I already follow the step.

my problem here is i have second hdd 80 GB in Fat32 format. inside the hdd already have around 60 GB data. what i want is to put it into my sme box so that i can acces all files including video and mp3.

when i follow the guide starting point at step 6, (after login root and type telinit 1 and eit fstab) it doesn't work for me. i type this command :-

1. chown admin:allstaff /mnt/bigdisk/mp3
it show >> chown: admin:allstaff': invalid group

i have existing group : executive
2. chown admin:executive /mnt/bigdisk/mp3
it show >> chown changing ownership of /mnt/big-disk/mp3': Operation not permitted.

so .. where is the mistake here. i cannot format my second hdd to ext3 because i dont have any spare hdd.

from my experience at RedHat9.0 it works when i push umask 775 and uid:executive,gid:executive at fstab. i can edit and remove file on the second hdd.

why at sme i cannot run all this ...

Thank you in advance.


Hi,

The howto file is just a guide, and you have to change  some of the commands to suit your needs.

eg:
Code: [Select]
chown admin:executive /mnt/yourHDD/whatever

HTH

i-techzone

New Hard Disk Permission
« Reply #5 on: April 22, 2005, 09:30:25 AM »
Hrmm ...

i think i told all about is my problem.

my actual command is

chown admin:executive /mnt/data-bank/jukebox
but it show:  Operation not permitted

so where is mistakes. i know the guide just a guideline. if no guide line i will not get this prompt. right?

anybody can find other solution.

if i can't change group permission i can't write it thru samba. the only can write is admin. becouse when i ls -l /mnt/data-bank it show permission 755. not 775

Quail_Linux

New Hard Disk Permission
« Reply #6 on: April 22, 2005, 09:46:39 AM »
Quote from: "i-techzone"
Hrmm ...

i think i told all about is my problem.

my actual command is

chown admin:executive /mnt/data-bank/jukebox
but it show:  Operation not permitted

so where is mistakes. i know the guide just a guideline. if no guide line i will not get this prompt. right?

anybody can find other solution.

if i can't change group permission i can't write it thru samba. the only can write is admin. becouse when i ls -l /mnt/data-bank it show permission 755. not 775


Hi,

try this:
Code: [Select]
chmod 775 /mnt/data-bank/jukebox

and then
Code: [Select]
chown admin:executive /mnt/data-bank/jukebox

Just an idea

HTH

Quail_Linux

New Hard Disk Permission
« Reply #7 on: April 22, 2005, 09:58:39 AM »
oh i forgot to add:

If you have other stuff on your main drive that are assigned to the executive group check to see who the owner of the group is, cause for some silly reason it may not be admin.

Just another idea

i-techzone

New Hard Disk Permission
« Reply #8 on: April 22, 2005, 01:48:34 PM »
May be you like to see what exactly i'm doing.

mkdir -p /data-bank
chown admin:executive /data-bank
chmod 775 /data-bank
ls -l /
drwxrwxr-x  2 admin executiv  4096 Apr 23 13:31 data-bank

edit fstab. ( using command from previous post)

mount -a
ls -l /
drwxr-xr-x  13 root root  32768 Apr 23 13:34 data-bank

<try to change back the owner)
chown admin:executive /data-bank
give error : Operation not permitted

try chmod first :
chmod 775 /data-bank
drwxr-xr-x  14 root  root  32768 Jan  1  1970 /data-disk
<it's not work also>

so where is the mistakes ...do anyone know this.

this problem is solve if at fstab can give permission to group.

please help me ... if not my people can't write anything in ibays.
thanks in advance.

i-techzone

New Hard Disk Permission
« Reply #9 on: April 22, 2005, 07:00:44 PM »
Hi all ...

any body know how to solve above problems. i'm really really need this to solve. other wise, our sme will unuseable to our people.

thank you again.

i-techzone

New Hard Disk Permission
« Reply #10 on: April 26, 2005, 10:03:31 AM »
Hi guys,

i have solve my problem ... i manage to buy another hdd to put it together with sme and my old hdd is my backup hdd.  :-( $$$ hehehe

but now i got another problem ... i just follow step by step in this url. http://mirror.contribs.org/smeserver/contribs/mblotwijk/HowToGuides/AddExtraHardDisk.htm.
but my problem now ... why i can't browse using internet explorer something like http://mybox/jukebox/files/ or http://mybox/files/jukebox/ after i make symlink to the ibays folder

is there any mistakes or i left behind.