LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Get permission to write/delete (https://www.linuxquestions.org/questions/linux-newbie-8/get-permission-to-write-delete-289732/)

it-s 02-13-2005 02:31 PM

Get permission to write/delete
 
Hi everyone,

I have a quick question here -

I have three HDDs one of which is Linux native (my SUSE system) the two other are old windows HDs I use for archives. I have mounted them easly and they work fine, BUT in a user mode ( when not logged as root) I can NOT write/delete anything there. It tells me 'access denied'. Where should I go and what to do to give me as normal user a full access to my HDs?

Preferable relative to SUSE system/YAST2 config ...

Thank you all in advance

it-s

chrisk5527 02-13-2005 03:19 PM

What kernel are you running? I'm pretty sure most kernels dont have the ability to write ( writing is also considered a form of deletion) to NTFS partitions by default, you'll only have the ability to read those partitions. You will have to recompile your kernel with the experimental module. Notice I said experimental, the module hasn't been fully released yet and may corrupt your NTFS data and/or partitions. I've never had problems with it and I've been using it for quite some time now. But that is what your problem more than likely is. I'm not familiar with SUSE, so I can't give you advice on how to recompile your kernel. Good Luck.

it-s 02-13-2005 03:24 PM

WHUT??? :confused:

but I can easly do writing/deleting logged as root!!!!!!!!!!!!!!!

come on!!!, there must be a way!!! what kind of operating system is Linux if it can NOT write/modify win partitions!!??? Of course it can, it must be able to, I don't belive it can't :Pengy:

Besides, the HDs I mentioned arn't NTFS, I don't like that format, so I never re-formated them to NTFS, they bouth are Win32

chrisk5527 02-13-2005 03:32 PM

First off, theres no such filesystem called Win32. Secondly, I'm trying to help. Thirdly, change the ownerships on the drives to "chmod 777 /mnt/hdx" . If you still can't write, then I'm stumped.

ak99505 02-13-2005 03:33 PM

I'm guessing you mounted them as root right, so basicly as a normal user you don't have permission to do anything since it will show up as root has ownership, umount them and mount them with the user you want to beable to read/write to

it-s 02-13-2005 03:39 PM

chrisk5527 - sorry I've overreacted
and of course there isn't such thing as Win32 filesystem - there is FAT32 and that's what I was referring to :)

ak99505 - you are right, but that's the only way to operate YAST (configuration system SUSE uses) i have to be logged as root, othervise that YAST won't work :( and I have NO idea how to mount without it :(

ak99505 02-13-2005 03:52 PM

Code:

mount -t vfat /dev/hdx /mnt/windows
type that at a terminal that will mount it for you, if it doesn't allow you to do it as a normal user then you'll have to edit your /dev/fstab file so users can mount simple add users to the options for that partition

Code:

/dev/hdc                /media/cdrw_dvdrw      auto    noauto,user,exec,ro 0 0
/dev/sda1              /media/usbdisk          vfat    noauto,user,exec 0 0
/dev/sdb1              /media/usbdisk2        vfat    noauto,user,exec 0 0

as you can see in mine, any user will be able to mount the dvd+rw and 2 usb drives

it-s 02-13-2005 05:13 PM

nothing works :(

I'm able to unmount the HD, but I can't mount it as a user :( system tells me - 'permission denied, only root do: mount'

May be there is another way... for instance how would you give a user, or a user group a permission to read/write/execute a certain location/partition/HD?

Tinkster 02-13-2005 05:20 PM

What does your /etc/fstab look like?


Cheers,
Tink

it-s 02-13-2005 05:25 PM

Like so:

fstab
Code:

/dev/hda1            /                    reiserfs  defaults              1 1
/dev/hda6            /home                ext3      defaults              1 2
/dev/hda5            swap                swap      pri=42                0 0
devpts              /dev/pts            devpts    mode=0620,gid=5      0 0
proc                /proc                proc      defaults              0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
sysfs                /sys                sysfs      noauto                0 0
/dev/dvdrecorder    /media/dvdrecorder  subfs      fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/hdb1            /home/it-s/archive  vfat      user                  0 0
/dev/hdc1            /home/it-s/windows  vfat      user                  0 0
shmfs      /dev/shm    shm    defaults        0      0

hdb1 and hdc1 are the HDs I want to have an access to as user

Tinkster 02-13-2005 05:31 PM

Quote:

/dev/hdb1 /home/it-s/archive vfat user 0 0
/dev/hdc1 /home/it-s/windows vfat user 0 0
I'd suggest a modification ...

Code:

/dev/hdb1            /home/it-s/archive  vfat      users,defaults,rw,uid=<Numerical id of your primary user>                  0 0
/dev/hdc1            /home/it-s/windows  vfat      users,defaults,rw,uid=<Numerical id of your primary user>                  0 0

And you could have found that quite easily using the
search on the board ...



Cheers,
Tink

it-s 02-15-2005 09:39 PM

It worked!!!

THANK YOU Tinkster, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you......

Huh, I think I'm overreacting again here :D (way too imotional)

But seriously, thank you for your help and to all the other people who tried to help.

All the best

it-s

mathfeel 02-16-2005 04:30 AM

I think you should consider umask option as well, if multiple users are to access it...


All times are GMT -5. The time now is 03:40 PM.