hey guys i am using opensuse 12.1 and i cant copy any file to my usb drive since i do not have permission to do so i logged in as root account and then right clicked usb drive and tried to change permission and apply read and write attributed to groups and users but it gives an error that cannot give permission blah blah… plz help me how i can change permission for my usb drive or any other drive in opensuse so that i might have read and right permission for that drive
On 11/27/2012 12:36 PM, yasirassassin wrote:
>
> hey guys i am using opensuse 12.1 and i cant copy any file to my usb
> drive since i do not have permission to do so i logged in as root
> account and then right clicked usb drive and tried to change permission
> and apply read and write attributed to groups and users but it gives an
> error that cannot give permission blah blah… plz help me how i can
> change permission for my usb drive or any other drive in opensuse so
> that i might have read and right permission for that drive
if you plug in a USB drive after the system is up and running it
should be detected by the system and you get a pop-up asking you what
you want to do with that new attachment…like it might say “Open in
File Manager”, and if you select that you should have absolutely no
trouble and NO need to change any permissions…
and, as i just said in another of your threads: do NOT log into KDE,
GNOME, etc etc as root…ever.
now, if you connect that drive before you boot then things are
different, and you must add info into /etc/fstab to mount the drive and
give yourself access to it…
generally, changing the permissions of files, directories, drives etc as
root is NOT the way to solve ‘permissions problems’…
–
dd
On 2012-11-27 12:36, yasirassassin wrote:
>
> hey guys i am using opensuse 12.1 and i cant copy any file to my usb
> drive since i do not have permission to do so i logged in as root
> account and then right clicked usb drive and tried to change permission
> and apply read and write attributed to groups and users but it gives an
> error that cannot give permission blah blah… plz help me how i can
> change permission for my usb drive or any other drive in opensuse so
> that i might have read and right permission for that drive
Insufficient data to process request.
Like how are you mounting the device (manually or automatically), what
desktop you use, what type of filesystem it has…
–
Cheers / Saludos,
Carlos E. R.
(from 11.4 x86_64 “Celadon” (Minas Tirith))
You cannot change permissions of a drive. Only of files and folders on the drive.
mmm thanks k got it well i can also mount usb drive using kde partition manager right ??
Is there a KDE partition manager???
On 2012-11-27 15:26, Knurpht wrote:
>
> You cannot change permissions of a drive. Only of files and folders on
> the drive.
You can, in a sense. Of the root directory of the drive. On some
desktops, this is remembered for automatic mounts.
–
Cheers / Saludos,
Carlos E. R.
(from 11.4 x86_64 “Celadon” (Minas Tirith))
On 11/27/2012 03:26 PM, yasirassassin wrote:
> mmm thanks k got it
good for you!!
> well i can also mount usb drive using kde partition
> manager right ??
i was not aware that KDE has a partitioner… YaST has one built in, but
if you plug the USB in after the system is up and running you should not
have the chance to use it…it should be offered to you in the popup
long before you might try to mount it with a partitioner…
any, partitioner…
anyway, mounting would normally NOT be in a partiotioner, but rather in
a terminal with the mount command, not with a partitioner…WAIT, you
wrote “partition manager” and i don’t know anything about one of those…
now, maybe you are asking how you can plug in a usb drive before you
boot, and leave it connected all of the time…is that what you are
aksing?
–
dd
I do not know what “sense” you mean, but for me, the “drive” (bad old-fashioned MS-DOS word imho), is the device and a device is represented in the system by the device special file. And the end-user can not change owner and persmission there. root can (of course) but it is not very clever and nowaday only lasts until shutdown.
That’s what I meant.
hey guys u said that when i plug in usb drive it asks whether i want to open it with file manger if i open it from there with file manager even than i cant copy anything to usb drive since u said that this way i could be able to read and write files to usb but its not happening
moreover i opened up the partitioner that is built in in opensuse and tried to play with my drives well one of my drives was mounted as this
/windows/d
and other was as this
/media/yasir
i changed mount point of "
/media/yasir" to “/windows/e”
after than what happened that it started acting just as usb drive that i was not able to copy any file to that drive but when i loged in as root than i was able to copy and paste files
so i changed “/windows/e” back to “/media/yasir” but it did not made any change still i cant copy and paste any file to that drive …but if am logged in as root than i can do whatever i want
as you guys have mentioned use of fstab i know that it mounts out drive and it saves into fstab file which is loated in root/etc i beleive so i opened it and checkted that /windows/d was mounted there in the list but usb drive was not moreover /media/yasir was also not mounted
i was just experimenting with drives u know every one learns from experiments
any way my point here is that if i mount both my /media/yasir and usb drive using fstab only then i will be able to copy things into these drives ???
I do not understand at all what you are doing. Please let us concentrate on that one USB storage device. And do not mix in stories about fstab mounted windows partitions on your main disk.
As you seem to have fiddled around with several things, first do a fresh boot.
Then login into your KDE session.
Then enter the USB device, wait for the popup and choose using the file manager there.
Then leave that Dolphin window open, but do not do things there.
From a terminal window show us the output of:
mount | grep media
and
ls -l /media
and
ls -l /media/yasir
Post here (copy/paste between CODE tags by using the # button in the tool bar).
On 2012-11-27 20:26, yasirassassin wrote:
>
> hey guys u said that when i plug in usb drive it asks whether i want to
> open it with file manger if i open it from there with file manager even
> than i cant copy anything to usb drive since u said that this way i
> could be able to read and write files to usb but its not happening
> moreover i opened up the partitioner that is built in in opensuse and
> tried to play with my drives well one of my drives was mounted as this
STOP.
Do it one way, stop, ask, and wait for replies. The way you are going on
and on it is impossible to help.
Which way do you want to access that drive?
What filesystem does it have?
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)
mmm ok sorry …
well i want to access that usb drive so that i might have permission to read and write data to that drive
it has fat32 filesystem
and even opening usb with filemanager (which appears when i plug in my usb) does not give me permission to write data to usb drive …
well ive checked it in fstab file which is located in etc folder and found that usb drive is not mounted there in the list
You do not see in the fstab if a file is mounted.
I asked you for information in post #12. Where is it?
On 2012-11-29 13:46, yasirassassin wrote:
> mmm ok sorry …
> well i want to access that usb drive so that i might have permission to
> read and write data to that drive
> it has fat32 filesystem
AH! That is crucial.
Then there are two methods.
One is to let the desktop mount the drive automatically. In this
circumstance you do not have control over the permissions of the drive,
and worst, as it is FAT you can not change them. Typically, the user
that owns that desktop will get write permissions on the drive for that
session only. No other users are allowed.
Read why in books. ¡REALLY!
The other method is you creating the appropriate line in fstab with
the correct tokens for vfat that allow people to write to the drive. It
also means that then you will have to manually mount the drive.
Explanations in books and manuals. It has also been posted here before.
I have to go out.
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)
here are results
for grep media
/dev/sdb1 on /media/PENDRIVE type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=cp437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,errors=remount-ro,uhelper=udisks)
for ls -l /media
drwx------ 15 yasir users 8192 Jan 1 1970 PENDRIVE
drwxr-xr-x 2 root root 4096 Nov 27 21:38 Yasir
for ls -l /windows/E (i changed /media/yasir to /windows/E)
drwxr-xr-x 1 root users 4096 Jun 24 2008 mplayerplug-in-3.55
-rw-r--r-- 2 root users 281845 Nov 23 21:24 mplayerplug-in-3.55.tar.gz
drwxr-xr-x 1 root users 4096 Nov 22 06:46 Music
drwxr-xr-x 1 root users 0 Nov 26 18:32 RECYCLER
drwxr-xr-x 1 root users 4096 Nov 20 22:14 Softwares
drwxr-xr-x 1 root users 0 Nov 20 21:08 Study time
drwxr-xr-x 1 root users 4096 Nov 20 20:46 System Volume Information
I have several remarks:
-
when you post those things between CODE tags, please copy/past INCLUDING the prompt and the commad (and of course the output). There is no need to tell "for grep mediaq becausre that should be inside the CODE tags witth the rest. Do not tell by typing when you can show by copy/paste the real things!
-
We are NOT talking about /Windows/E. You mixed that in and Carlos and I try to concentrate you on that USB device. Not on something else. When you have a problem with /Windows/E, you should start another thread with that other problem.
-
From the mount output we see that your USB device has one partition (here sdb1) and that there is a vfat file system on it and that this has a label PENDRIVE. We also see that it is mounted on /media/PENDRIVE. All normal.
-
From the listing of /media we see that the mountpoint /media/PENDRIVE is owned by user yasir and group users. The owner can read/write and sreach that mount point directory.
We also see a directory Yasir.I do not know why it is there. -
When I read your post #1 here, my conclusion is that you loged in as root in the GUI desktop (because you say you “clicked”). We porbably will never know what you did there to damage your system. Do NEVER login in the GUI as root! And in fact also not in the CLI.
Now next. I would like to see the output of
mount
and
ls -l /media/PENDRIVE /media/Yasir
And of course the situation must still be the same as before. Try to understand that we can not see what you do, or see what you see. We totaly depend on you doing what we ask exactly, or telling what you did different, or errors you saw, everything.
On 2012-11-29 18:26, yasirassassin wrote:
> for ls -l /windows/E (i changed /media/yasir to /windows/E)
>
>
>
> Code:
> --------------------
> drwxr-xr-x 1 root users 4096 Jun 24 2008 mplayerplug-in-3.55
> -rw-r–r-- 2 root users 281845 Nov 23 21:24 mplayerplug-in-3.55.tar.gz
> drwxr-xr-x 1 root users 4096 Nov 22 06:46 Music
> drwxr-xr-x 1 root users 0 Nov 26 18:32 RECYCLER
> drwxr-xr-x 1 root users 4096 Nov 20 22:14 Softwares
> drwxr-xr-x 1 root users 0 Nov 20 21:08 Study time
> drwxr-xr-x 1 root users 4096 Nov 20 20:46 System Volume Information
> --------------------
Why on earth did you change “/media/yasir to /windows/E”? How? Show the
exact commands you used. Who told you to do that?
Don’t do things that we did not ask for.
You are causing problems.
For the rest, I concur with what Henk told you.
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)
well in order to accomplish that i mean converting /media/Yasir to /windows/E
i just opened the partition-er and double clicked on my drive /media/Yasir and then it showed all info about that drive that what are its mount point and fstab option there was an edit button i believe so i clicked on that and chaged mount point there
well leave this discussion let us concentrate on our usb issue here perhaps thing got messed up here
now how do you suggest to change the permission of the usb drive …