LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   how to mount Usb in solaris 9 (https://www.linuxquestions.org/questions/solaris-opensolaris-20/how-to-mount-usb-in-solaris-9-a-457236/)

sajidmumtaz 06-22-2006 08:12 AM

how to mount Usb in solaris 9
 
hi !
how i can mount my usb on solaris 9?
Regards.

TruongAn 06-22-2006 08:54 AM

You should post it in general

jeremy 06-22-2006 09:03 AM

Moved: This thread is more suitable in the Solaris forum and has been moved accordingly to help your thread/question get the exposure it deserves.

--jeremy

jlliagre 06-22-2006 11:37 AM

Connect your device and restart the volume manager (/etc/init.d/volmgt stop; /etc/init.d/volmgt start).

The filesystem should show up in /rmdisk/unnamed (or under a specific name if found).

With recent Solaris versions, USB devices mounted automatically when plugged.

Before removing a device, you need to run the command "eject unnamed" to flush the caches and have the device unmounted properly.

sajidmumtaz 06-23-2006 06:27 AM

Hi jilliagre !
Thanks. Its working now . But some usb devices create problem when connected and some times it take time to show its file system.
This all works with root login. I mean when user try to stop or start volume manager he didnt do it. what should i do that user only stop and start this volume manager just to copy there data to usb.
Also can anyone tell me how i can change my login name here . Like its sajidmumtaz i want to change it . coz there is no option in profile like that.
thanks.
Regards.

jlliagre 06-23-2006 02:08 PM

Quote:

Originally Posted by sajidmumtaz
This all works with root login. I mean when user try to stop or start volume manager he didnt do it. what should i do that user only stop and start this volume manager just to copy there data to usb.

That is a Solaris 9 limitation, latest Solaris distributions hot mount USB devices.
Quote:

Also can anyone tell me how i can change my login name here . Like its sajidmumtaz i want to change it . coz there is no option in profile like that.
Simply replace occurences of your name in the /etc/passwd, /etc/shadow and /etc/group files.

sajidmumtaz 06-24-2006 01:28 AM

Hi !
Can i write some script for that or i can use some chmod to give right of volume manager on of to specific group of user. how it will be possible.

Second i want to change my login name of this site i mean i want to change sajidmumtaz name when i login to www.linuxquestions.org.

Regards.

jlliagre 06-24-2006 09:34 AM

Quote:

Originally Posted by sajidmumtaz
Hi !
Can i write some script for that or i can use some chmod to give right of volume manager on of to specific group of user. how it will be possible.

You can use RBAC or sudo for that.

Quote:

Second i want to change my login name of this site i mean i want to change sajidmumtaz name when i login to www.linuxquestions.org.
So this is unrelated to Solaris, better looking in/asking to the right forum:
http://www.linuxquestions.org/questi...isplay.php?f=7

sajidmumtaz 06-28-2006 01:18 AM

Hi !
how can i configure SUDO for specific group i.e sungroup so that they can stop and start volume manager and then use the command cd /rmdisk.
Regards.

sajidmumtaz 06-29-2006 01:22 AM

hi
I have configure RBAC but i m not sure to add role for specific Scenario i.e A specific group can start and stop volume manager and user cd /rmdisk command to use there usbs.
Plz help.
Sajid.

jlliagre 06-30-2006 04:13 AM

Please post your RBAC settings.

sajidmumtaz 07-03-2006 04:56 AM

hi !
i just did it using SMC and i dont remeber it much i just add user and assign memory manager role to it. I think that was wrong thing. I m trying to Install and configure SUDO. I download SUDO 1.6.8 and install it with package add command n its located at /usr/local/sudo but there are no configure or install or compiling option in it. i m very much confused.
As i just told u a specific group can start and stop volume manager and user cd /rmdisk command to use there usbs.
Help me in this.
Regards.

jlliagre 07-03-2006 05:32 AM

I stopped using sudo a long time ago, so I can't help you if you want to go that way. Using RBAC is anyway simple, you just need to edit three files.

/etc/security/exec_attr, add
Code:

volmgter:suser:cmd:::/etc/init.d/volmgt:uid=0
/etc/security/prof_attr, add
Code:

volmgter:::Those allowed to run volmgt:
/etc/user_attr, add
Code:

sajidmumtaz::::profiles=volmgter;type=normal
Then, when logged-in as sajidmumtaz, you can restart vold with these commands:

Code:

pfexec /etc/init.d/volmgt stop
pfexec /etc/init.d/volmgt start


sajidmumtaz 07-04-2006 11:49 PM

hi !
thanks for your help jlliagre. I also did some setting using these files i will post these settings later.
what if i have to give access to specific group for the same command.
Regards.

jlliagre 07-05-2006 01:16 AM

Duplicating the user_attr line I posted for each user belonging to the authorized group will do what you want.


All times are GMT -5. The time now is 11:59 PM.