Find the answer to your Linux question:
Results 1 to 10 of 10
i use my phone as modem everything works but only in root that is if i wanna connect to my phone i gotta be root i have tried rfcomm bind ...
  1. #1
    Linux Engineer scrarfussi's Avatar
    Join Date
    Aug 2006
    Posts
    1,029

    bluetooth modem

    i use my phone as modem everything works but only in root that is if i wanna connect to my phone i gotta be root i have tried rfcomm bind /dev/rfcomm0 as normall user but get error operation not permitted is there any way i can change these permissions so i can connect without being root

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    set 'special' UID of /usr/bin/rfcomm file.

    sudo chmod +s /usr/bin/rfcomm

    now a normal user will have permission to ser rfcomm devices.




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Engineer scrarfussi's Avatar
    Join Date
    Aug 2006
    Posts
    1,029
    Quote Originally Posted by devils_casper
    set 'special' UID of /usr/bin/rfcomm file.

    sudo chmod +s /usr/bin/rfcomm

    now a normal user will have permission to ser rfcomm devices.




    casper
    Ok will try it out Thanx

  4. #4
    Linux Engineer scrarfussi's Avatar
    Join Date
    Aug 2006
    Posts
    1,029
    I tried wat you said now i'm able to rfcomm bind but now i hav got another problem when i try rfcomm connect /dev/rfcomo0 (myphonesid) i get this error CANT CREATE RFCOMM TTY ADDRESS ALREADY IN USE i tried rfcomm release all but still no luck c

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    type 'rfcomm' in terminal. check if its really in use or not. after that try 'rfcomm release all' again.



    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Linux Engineer scrarfussi's Avatar
    Join Date
    Aug 2006
    Posts
    1,029
    I managed to sort it out Thanx when i use the rfcomm bind then i cant use rfcomm connect so i simply released all and i now just use the rfcomm connect my problem now comes to kppp i've set uid on it but i cant query modem i just get unable to open modem but if i launch kppp from root i it works i know i could just use it from root but then konqueror and firefox will need to be launched from root

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    in that case, add normal user in root and dialout groups. you can do this through user and group management in YAST. i am not in SuSe box, so can't tell you which other groups you need for that.

    you can add groups through command line too...

    adduser <user_name> dialout root




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #8
    Linux Engineer scrarfussi's Avatar
    Join Date
    Aug 2006
    Posts
    1,029
    I've been to yast and cant figure out wat to tick under users user data my name is there
    Details there is long list of boxes i ticked the one written dial out and modem
    Under groups there is no option for dial out i tried the command you gave me and i get bash: adduser : command not found

  9. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    you must be root to execute 'adduser' command.




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  10. #10
    Linux Engineer scrarfussi's Avatar
    Join Date
    Aug 2006
    Posts
    1,029
    Quote Originally Posted by devils_casper
    you must be root to execute 'adduser' command.




    casper
    Even as root no luck get the same error

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...