This is a discussion on Re: permission denied within the Linux General forums, part of the Linux Forums category; At Tue, 25 Mar 2008 21:05:18 -0700 (PDT) laredotornado <laredotornado@zipmail.com> wrote: > > Ok, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
At Tue, 25 Mar 2008 21:05:18 -0700 (PDT) laredotornado <laredotornado@zipmail.com> wrote:
> > Ok, I guess it's because its late, but I create this file as root > > [root@mymachine]~% ls -al /mnt/usbstick > total 11188 > drwxr-xr-x 2 root root 4096 Mar 25 21:39 . > drwxr-xr-x 6 root root 4096 Nov 1 2006 .. > -rwxrwxrwx 1 root server 821212 Mar 25 21:39 mysql_scripts.tgz > -rwxrwxrwx 1 root server 10600448 Mar 25 21:39 web.tgz > > and when I'm a normal user and try and remove one of these 777 files > > [me@remandev]~% rm /mnt/usbstick/mysql_scripts.tgz > rm: cannot remove `/mnt/usbstick/mysql_scripts.tgz': Permission denied > > Why am I getting permission denied when the perms are 777? - Dave You USB stick probably has a FAT file system -- FAT does not support full permissions and ownership flags. You either need to mount you USB stick as a normal user (assuming it is in /etc/fstab and has the 'user' option) OR mount it with the uid=, and gid= options set to your user id and group id. man mount man fstab > -- Robert Heller -- Get the Deepwoods Software FireFox Toolbar! Deepwoods Software -- Linux Installation and Administration http://www.deepsoft.com/ -- Web Hosting, with CGI and Database heller@deepsoft.com -- Contract Programming: C/C++, Tcl/Tk |
|
|||
|
On Mar 26, 1:44 pm, Robert Heller <hel...@deepsoft.com> wrote:
> At Tue, 25 Mar 2008 21:05:18 -0700 (PDT) laredotornado <laredotorn...@zipmail.com> wrote: > > > > > > > Ok, I guess it's because its late, but I create this file as root > > > [root@mymachine]~% ls -al /mnt/usbstick > > total 11188 > > drwxr-xr-x 2 root root 4096 Mar 25 21:39 . > > drwxr-xr-x 6 root root 4096 Nov 1 2006 .. > > -rwxrwxrwx 1 root server 821212 Mar 25 21:39 mysql_scripts.tgz > > -rwxrwxrwx 1 root server 10600448 Mar 25 21:39 web.tgz > > > and when I'm a normal user and try and remove one of these 777 files > > > [me@remandev]~% rm /mnt/usbstick/mysql_scripts.tgz > > rm: cannot remove `/mnt/usbstick/mysql_scripts.tgz': Permission denied > > > Why am I getting permission denied when the perms are 777? - Dave > > You USB stick probably has a FAT file system -- FAT does not support full > permissions and ownership flags. You either need to mount you USB stick > as a normal user (assuming it is in /etc/fstab and has the 'user' > option) OR mount it with the uid=, and gid= options set to your user id > and group id. > > man mount > man fstab > > > > -- > Robert Heller -- Get the Deepwoods Software FireFox Toolbar! > Deepwoods Software -- Linux Installation and Administrationhttp://www.deepsoft.com/ -- Web Hosting, with CGI and Database > hel...@deepsoft.com -- Contract Programming: C/C++, Tcl/Tk Yes you are right, But may there is an easy way to change the permissions after doing the mount as root, With chmod 777 "the name of the parent directory" will give the users full permissions if you so choose. |
|
|||
|
At Thu, 27 Mar 2008 03:00:37 -0700 (PDT) habibielwa7id <fouad012@gmail.com> wrote:
> > On Mar 26, 1:44 pm, Robert Heller <hel...@deepsoft.com> wrote: > > At Tue, 25 Mar 2008 21:05:18 -0700 (PDT) laredotornado <laredotorn...@zipmail.com> wrote: > > > > > > > > > > > > > Ok, I guess it's because its late, but I create this file as root > > > > > [root@mymachine]~% ls -al /mnt/usbstick > > > total 11188 > > > drwxr-xr-x 2 root root 4096 Mar 25 21:39 . > > > drwxr-xr-x 6 root root 4096 Nov 1 2006 .. > > > -rwxrwxrwx 1 root server 821212 Mar 25 21:39 mysql_scripts.tgz > > > -rwxrwxrwx 1 root server 10600448 Mar 25 21:39 web.tgz > > > > > and when I'm a normal user and try and remove one of these 777 files > > > > > [me@remandev]~% rm /mnt/usbstick/mysql_scripts.tgz > > > rm: cannot remove `/mnt/usbstick/mysql_scripts.tgz': Permission denied > > > > > Why am I getting permission denied when the perms are 777? - Dave > > > > You USB stick probably has a FAT file system -- FAT does not support full > > permissions and ownership flags. You either need to mount you USB stick > > as a normal user (assuming it is in /etc/fstab and has the 'user' > > option) OR mount it with the uid=, and gid= options set to your user id > > and group id. > > > > man mount > > man fstab > > > > > > > > -- > > Robert Heller -- Get the Deepwoods Software FireFox Toolbar! > > Deepwoods Software -- Linux Installation and Administrationhttp://www.deepsoft.com/ -- Web Hosting, with CGI and Database > > hel...@deepsoft.com -- Contract Programming: C/C++, Tcl/Tk > > Yes you are right, But may there is an easy way to change the > permissions after doing the mount as root, With chmod 777 "the name of > the parent directory" will give the users full permissions if you so > choose. chmod, chown, and chgrp are less than fully useful with FAT file systems, since these file systems just don't have the permissions and ownership suport needed by these commands. > -- Robert Heller -- Get the Deepwoods Software FireFox Toolbar! Deepwoods Software -- Linux Installation and Administration http://www.deepsoft.com/ -- Web Hosting, with CGI and Database heller@deepsoft.com -- Contract Programming: C/C++, Tcl/Tk |
|
|||
|
On Mar 27, 1:49 pm, Robert Heller <hel...@deepsoft.com> wrote:
> At Thu, 27 Mar 2008 03:00:37 -0700 (PDT) habibielwa7id <fouad...@gmail.com> wrote: > > > > > > > On Mar 26, 1:44 pm, Robert Heller <hel...@deepsoft.com> wrote: > > > At Tue, 25 Mar 2008 21:05:18 -0700 (PDT) laredotornado <laredotorn...@zipmail.com> wrote: > > > > > Ok, I guess it's because its late, but I create this file as root > > > > > [root@mymachine]~% ls -al /mnt/usbstick > > > > total 11188 > > > > drwxr-xr-x 2 root root 4096 Mar 25 21:39 . > > > > drwxr-xr-x 6 root root 4096 Nov 1 2006 .. > > > > -rwxrwxrwx 1 root server 821212 Mar 25 21:39 mysql_scripts.tgz > > > > -rwxrwxrwx 1 root server 10600448 Mar 25 21:39 web.tgz > > > > > and when I'm a normal user and try and remove one of these 777 files > > > > > [me@remandev]~% rm /mnt/usbstick/mysql_scripts.tgz > > > > rm: cannot remove `/mnt/usbstick/mysql_scripts.tgz': Permission denied > > > > > Why am I getting permission denied when the perms are 777? - Dave > > > > You USB stick probably has a FAT file system -- FAT does not support full > > > permissions and ownership flags. You either need to mount you USB stick > > > as a normal user (assuming it is in /etc/fstab and has the 'user' > > > option) OR mount it with the uid=, and gid= options set to your user id > > > and group id. > > > > man mount > > > man fstab > > > > -- > > > Robert Heller -- Get the Deepwoods Software FireFox Toolbar! > > > Deepwoods Software -- Linux Installation and Administrationhttp://www.deepsoft.com/-- Web Hosting, with CGI and Database > > > hel...@deepsoft.com -- Contract Programming: C/C++, Tcl/Tk > > > Yes you are right, But may there is an easy way to change the > > permissions after doing the mount as root, With chmod 777 "the name of > > the parent directory" will give the users full permissions if you so > > choose. > > chmod, chown, and chgrp are less than fully useful with FAT file > systems, since these file systems just don't have the permissions and > ownership suport needed by these commands. > > > > -- > Robert Heller -- Get the Deepwoods Software FireFox Toolbar! > Deepwoods Software -- Linux Installation and Administrationhttp://www.deepsoft.com/ -- Web Hosting, with CGI and Database > hel...@deepsoft.com -- Contract Programming: C/C++, Tcl/Tk -Yes man but I didn't mean to change the permissions of the data it self that uses fat32, I meant to change the ownership and permissions of the Linux directory that you use to mount the Windows partition on. -The best solution to this problem is what "Robert Heller" said, And this is what I did to solve this problem since I use Linux as a normal user and when I mounted fat32 partitions inside Linux I couldn't control it as a normal user. If you want to control this data from Linux you must be root or search about another solution as we tried. I just tried to suggest easier solution by chown "The name of the user" "the name of the Linux directory that you mounted fat32 partition into" I think I tried this before and it worked. |