LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-22-2008, 02:06 PM   #1
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Rep: Reputation: 61
Adding users to more than one group?


Possible under FC8/GNOME? I think I need to do this to allow the PalmOS connectivity to work with the daemon controls the /dev/USB0 (or whatever) that controls the directory permissions for USB connectivity at /dev/USB0 and /dev/USB1 for syncing my Palm TX PDA, which seems to belong to the group "uucp" (whatever that is).

Any advice welcome.

Last edited by arashi256; 01-22-2008 at 02:09 PM.
 
Old 01-22-2008, 02:55 PM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 60
Yes, of course it's possible. Here. for example, is my output of the id command
teddy@toshiba64 ~$ id
uid=1000(teddy) gid=1000(teddy) groups=92(audio),93(optical),1000(teddy)

You can do it either when creating the user, or later, by using the usermod command.
 
Old 01-22-2008, 03:24 PM   #3
Natilous
Member
 
Registered: Sep 2005
Location: Iran
Distribution: Parsix 1.0 , Debian etch 4.0r1
Posts: 31

Rep: Reputation: 15
in debian distros in /etc/group you can add users to any groups available.
I think on Fedora like this .
#vim /etc/group ({or other editors})

good Luck !
 
Old 01-22-2008, 04:27 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
The proper way under Linux to edit groups is by issuing the command "vigr"
Code:
mingdao@silas:~$ man vigr
VIPW(8)                                                                                                                                                                 VIPW(8)

NAME
       vipw, vigr - edit the password, group, shadow-password, or shadow-group file.

SYNOPSIS
       vipw [-s]
       vigr [-s]

DESCRIPTION
       vipw  and  vigr  will  edit  the  files  /etc/passwd and /etc/group, respectively.  With the -s flag, they will edit the shadow versions of those files, /etc/shadow and
       /etc/gshadow, respectively.  The programs will set the appropriate locks to prevent file corruption.

       When looking for an editor, the programs will first try the environment variable VISUAL, then the environment variable EDITOR, and finally the default editor, vi.

SEE ALSO
       group(5), passwd(5), shadow(5)

                                                                                  26 Sep 1997                                                                           VIPW(8)
 
Old 01-22-2008, 06:03 PM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
i have always used usermod -G for adding users to groups.
 
Old 01-23-2008, 04:32 AM   #6
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Original Poster
Rep: Reputation: 61
Okay, thanks - I'll try that and see if it helps with my Palm TX any. Good to know how to do it anyway.
 
Old 01-23-2008, 08:39 AM   #7
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
If you are successful getting a Palm T|X to work with Linux, I'd like to know. I have one and have followed every bit of advice on the world wide web and it has never worked with kpilot or j-pilot. My kernel recognizes it as an USB device:
Code:
root@silas:~# tail -f /var/log/messages
Jan 23 20:02:39 silas -- MARK --
Jan 23 20:22:39 silas -- MARK --
Jan 23 20:42:39 silas -- MARK --
Jan 23 21:02:39 silas -- MARK --
Jan 23 21:21:20 silas kernel: usb 4-2: new full speed USB device using uhci_hcd and address 2
Jan 23 21:21:20 silas kernel: usb 4-2: configuration #1 chosen from 1 choice
but that's as far as it goes. None of the other programs that should work have ever seen or connected with it. For the time I invested recompiling kernels and compiling software, I could have built a dedicated Windows boxen and used the software written for it instead.
 
Old 01-23-2008, 08:43 AM   #8
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Original Poster
Rep: Reputation: 61
Yup, thats about as far as I've got with my Palm TX under Linux right now. By monitoring the dev directory, it adds ttyUSB0 and ttyUSB1 when plugging in the Palm TX via the USB cable, but will not recognise a sync. If I manage to get it working, I'll post back - its an ongoing thing at the moment.
 
Old 01-23-2008, 10:02 AM   #9
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
In my recent custom kernel I didn't compile support for USB-SERIAL. So I recompiled a kernel, and now have this:
Code:
mingdao@silas:~$ lsmod | grep usbserial
usbserial              25960  1 visor
The output from the kernel is different, also:
Code:
root@silas:~# tail -f /var/log/messages
Jan 23 22:36:37 silas kernel: usb 4-2: new full speed USB device using uhci_hcd and address 3
Jan 23 22:36:37 silas kernel: usb 4-2: configuration #1 chosen from 1 choice
Jan 23 22:36:37 silas kernel: visor 4-2:1.0: Handspring Visor / Palm OS converter detected
Jan 23 22:36:37 silas kernel: usb 4-2: Handspring Visor / Palm OS converter now attached to ttyUSB0
Jan 23 22:36:37 silas kernel: usb 4-2: Handspring Visor / Palm OS converter now attached to ttyUSB1
but I still can't get it working with J-Pilot of KPilot. This is the other output:
Code:
mingdao@silas:~$ pilot-xfer -p ttyUSB0 -C
   Unable to bind to port: ttyUSB0
   Please use --help for more information

mingdao@silas:~$ sudo -i
root@silas:~# pilot-xfer -p ttyUSB0 -C
   Unable to bind to port: ttyUSB0
   Please use --help for more information
Didn't work as user or root.

I also added my normal user, and root, to both tty and uucp groups, which didn't change anything.

And for the /dev entries:
Code:
mingdao@silas:~$ ls -l /dev/tts/USB0
crw-rw---- 1 root uucp 188, 0 2008-01-23 22:55 /dev/tts/USB0
mingdao@silas:~$ ls -l /dev/ttyUSB0
lrwxrwxrwx 1 root root 8 2008-01-23 22:55 /dev/ttyUSB0 -> tts/USB0
I've not come across a single <Linux> Google hit that helped ...
 
Old 01-23-2008, 10:14 AM   #10
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
Furthermore ...
Code:
root@silas:~# ln -s /dev/ttyUSB1 /dev/pilot
root@silas:~# pilot-xfer -p ttyUSB1 -C
   Unable to bind to port: ttyUSB1
   Please use --help for more information

root@silas:~# pilot-xfer -p ttyUSB0 -C
   Unable to bind to port: ttyUSB0
   Please use --help for more information

root@silas:~# pilot-xfer -p ttyUSB0 -C
   Unable to bind to port: ttyUSB0
   Please use --help for more information

root@silas:~# pilot-xfer -p ttyUSB1 -C

   Listening for incoming connection on ttyUSB1... connected!

Filesystem     Size        Used        Free  #  Card name
VFAT on SD  9109504  2059010048  2049900544  2  /

   Thank you for using pilot-link.

root@silas:~#
but I'm clueless what to do past that point. KPilot and J-Pilot still don't work, or report that access is denied to /dev/ttyUSB0
 
Old 01-23-2008, 10:22 AM   #11
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
Well, reading those "man pages" is paying off ...
Code:
mingdao@silas:~$ man pilot-xfer
OPTIONS
   pilot-xfer options
                               -a, --archive
                               <dir>

       Archives files which have been removed from the Palm to lt;dir> instead of just deleting (unlinking) them.

                               -b, --backup
                               <dir>
So I pressed the hotsync button on the Palm, and issued and got this:
Code:
root@silas:~# pilot-xfer -p ttyUSB1 -b /home/mingdao/palm

   Listening for incoming connection on ttyUSB1... connected!

   Creating directory '/home/mingdao/palm'...
   [+][1   ][] Backing up 'BibleR+Opt', 29664 bytes, 28 KiB...
   [+][2   ][] Backing up 'BibleFindResults', 1566 bytes, 30 KiB...
   [+][3   ][Fave] Backing up 'BackgroundThumb-Fave', 35076 bytes, 64 KiB...
   [+][4   ][Fave] Backing up 'Background-Fave', 462692 bytes, 516 KiB...
   [+][5   ][BLZ5] Backing up 'Blazer Bookmarks', 497 bytes, 517 KiB...
   [+][6   ][PLDE] Backing up 'PlecoCandidates S', 168 bytes, 517 KiB...
   [+][7   ][PLDE] Backing up 'PlecoCandidates T', 168 bytes, 517 KiB...
   [+][8   ][dCJK] Backing up 'CJK Phrase ChineseGB', 161800 bytes, 675 KiB...
   [+][9   ][BIBB] Backing up 'note_BibleReader', 16290 bytes, 691 KiB...
   [+][10  ][BIBK] Backing up 'bkm_BibleReader', 642 bytes, 691 KiB...
   [+][11  ][DTGP] Backing up 'DocsToGoDB', 10292 bytes, 702 KiB...
   [+][12  ][PAdd] Backing up 'ContactsDB-PAdd', 23630 bytes, 725 KiB...
   [+][13  ][PDat] Backing up 'CalendarDB-PDat', 4220 bytes, 729 KiB...
   [+][14  ][PMem] Backing up 'MemosDB-PMem', 1909 bytes, 731 KiB...
   [+][15  ][PTod] Backing up 'TasksDB-PTod', 481 bytes, 731 KiB...
   [+][16  ][QRYS] Backing up 'Queries', 1086 bytes, 732 KiB...
   [+][17  ][WMru] Backing up 'wiFiDbLibPrefDB-WMru', 114 bytes, 732 KiB...
   [+][18  ][WMru] Backing up 'wiFiDbLibMruDB-WMru', 1200 bytes, 733 KiB...
   [+][19  ][WiFi] Backing up 'WiFiDB', 779 bytes, 734 KiB...
   [+][20  ][addr] Backing up 'AddressDB', 2424 bytes, 737 KiB...
   [+][21  ][blth] Backing up 'Bluetooth Trusted Devices', 80 bytes, 737 KiB...
   [+][22  ][btch] Backing up 'Bluetooth Device Cache', 131 bytes, 737 KiB...
   [+][23  ][date] Backing up 'DatebookDB', 4134 bytes, 741 KiB...
   [+][24  ][dilP] Backing up 'Speed1.0_dilP', 180 bytes, 741 KiB...
   [+][25  ][dilP] Backing up 'History1.0_dilP', 215 bytes, 741 KiB...
   [+][26  ][exps] Backing up 'ExpenseDB', 472 bytes, 742 KiB...
   [+][27  ][locL] Backing up 'locLDefLocationDB', 6317 bytes, 748 KiB...
   [+][28  ][memo] Backing up 'MemoDB', 1891 bytes, 750 KiB...
   [-][skip][modm] Skipping OS file 'ConnectionMgr50DB'.
   [+][29  ][netw] Backing up 'NetworkDB', 155 bytes, 750 KiB...
   [+][30  ][npad] Backing up 'npadDB', 90676 bytes, 838 KiB...
   [+][31  ][pdmE] Backing up 'PIMsSupportStatus-pdmE', 80 bytes, 838 KiB...
   [+][32  ][phop] Backing up 'PhoneRegistryDB', 3188 bytes, 842 KiB...
   [+][33  ][sciC] Backing up 'CalculusDB', 1520 bytes, 843 KiB...
   [+][34  ][todo] Backing up 'ToDoDB', 446 bytes, 843 KiB...
   [+][35  ][wifi] Backing up '8381Fw', 83100 bytes, 925 KiB...
   [+][36  ][locL] Backing up 'locLCusLocationDB', 1286 bytes, 926 KiB...
   [+][37  ][locL] Backing up 'locLTimeZoneDB', 6900 bytes, 933 KiB...
   [+][38  ][PLDE] Backing up 'PlecoDict DA', 488 bytes, 933 KiB...
   [+][39  ][DTGP] Backing up 'WTG5Clipboard.pdb', 780 bytes, 934 KiB...
   [+][40  ][DTGP] Backing up 'DSDTGP', 750 bytes, 935 KiB...
   [+][41  ][DTGP] Backing up 'yangyong.gang.pdb', 4192 bytes, 939 KiB...
   [+][42  ][asc4] Backing up 'MMIDCache0', 25464 bytes, 964 KiB...
   [+][43  ][asc4] Backing up 'MMIDCache1', 80 bytes, 964 KiB...
   [+][44  ][asc4] Backing up 'MMIDCache2', 80 bytes, 964 KiB...
   [+][45  ][asc4] Backing up 'MMIDCache3', 80 bytes, 964 KiB...
   [+][46  ][asc4] Backing up 'MMIDCache4', 80 bytes, 964 KiB...
   [+][47  ][asc4] Backing up 'MMIDCache5', 80 bytes, 964 KiB...
   [+][48  ][asc4] Backing up 'MMIDCache6', 80 bytes, 964 KiB...
   [+][49  ][asc4] Backing up 'MMIDCache7', 80 bytes, 964 KiB...
   [+][50  ][asc3] Backing up 'MMNotify Send', 80 bytes, 964 KiB...
   [+][51  ][asc3] Backing up 'MultiMail Messages', 257404 bytes, 1216 KiB...
   [+][52  ][asc3] Backing up 'MultiMail Disconnected', 673 bytes, 1216 KiB...
   [+][53  ][asc3] Backing up 'MultiMail Attachments', 358 bytes, 1217 KiB...
   [+][54  ][Shim] Backing up 'Shim Logs', 80 bytes, 1217 KiB...
   [+][55  ][HsTr] Backing up 'System DB Chain Head', 80 bytes, 1217 KiB...
   [+][56  ][EBOK] Backing up 'BibleReaderHelp-Eng', 2878 bytes, 1219 KiB...
   [+][57  ][Fave] Backing up 'FavoritesDB-Fave', 53847 bytes, 1272 KiB...
   [+][58  ][DTGF] Backing up 'WordToGoFonts', 272790 bytes, 1538 KiB...
   [+][59  ][SSTG] Backing up 'SlideshowFonts', 51972 bytes, 1589 KiB...
   [+][60  ][SSol] Backing up 'Super Solitaire Saved Games', 570 bytes, 1590 KiB...
   [+][61  ][BLZ5] Backing up 'Blazer CacheHistory', 10731 bytes, 1600 KiB...
   [+][62  ][dCJK] Backing up 'CJK Input Method b5CJ', 150686 bytes, 1747 KiB...
   [+][63  ][dCJK] Backing up 'CJK Input Method b5SY', 7202 bytes, 1754 KiB...
   [+][64  ][dCJK] Backing up 'CJK Input Method b5ZY', 77152 bytes, 1830 KiB...
   [+][65  ][dCJK] Backing up 'CJK Input Method gbQP', 54854 bytes, 1883 KiB...
   [+][66  ][dCJK] Backing up 'CJK Input Method gbSY', 10624 bytes, 1894 KiB...
   [+][67  ][PLDE] Backing up 'PlecoDict HWR Database', 1246172 bytes, 3111 KiB...
   [+][68  ][adi1] Backing up 'midataidcache', 920 bytes, 3112 KiB...
   [+][69  ][DTGP] Backing up 'Sample - Closing The Deal.PDB', 40688 bytes, 3151 KiB...
   [+][70  ][DTGP] Backing up 'Sample - Successful Brains.PDB', 72048 bytes, 3222 KiB...
   [+][71  ][DTGP] Backing up 'Rick.pdb', 66830 bytes, 3287 KiB...
   [+][72  ][DTGP] Backing up 'assurance.pdb', 21664 bytes, 3308 KiB...
   [+][73  ][DTGP] Backing up 'Sample - Meeting Notes.PDB', 49952 bytes, 3357 KiB...
   [+][74  ][DTGP] Backing up 'Sample - Expense Report.PDB', 16016 bytes, 3373 KiB...
   [+][75  ][PLDE] Backing up 'PlecoDict User DB C-E', 19432 bytes, 3391 KiB...
   [+][76  ][PLDE] Backing up 'PlecoDict Flashcards', 133984 bytes, 3522 KiB...
   [+][77  ][PLDE] Backing up 'PlecoDict Radicals', 68472 bytes, 3589 KiB...
   [+][78  ][PLDE] Backing up 'Oxford Dict English-Chinese', 1632981 bytes, 5184 KiB...
   [+][79  ][PLDE] Backing up 'Oxford Dict Chinese-English', 2166817 bytes, 7300 KiB...
   [+][80  ][PLDE] Backing up 'NWP English-Chinese Dictionary', 2406088 bytes, 9650 KiB...
   [+][81  ][PLDE] Backing up 'PlecoDict GB-2312 Converter', 58454 bytes, 9707 KiB...
   [+][82  ][PLDE] Backing up 'PlecoDict Font 48'
It's still backing up the Palm ... don't know what else to tell you. I should have issued the command as a normal user, because the files under my home directory are owned by root atm. Though a simple "chown -R mingdao.users /home/mingdao/palm" will solve that issue.

In the kernel you need USB_SERIAL, as well as the normal UHCI or OHCI support, USB-HID, etc.

You need to symlink /dev/ttyUSB1 to /dev/pilot, then issue those commands.

Maybe someone with more experience will come along and bail us out.

Last edited by Bruce Hill; 01-23-2008 at 10:32 AM.
 
Old 01-23-2008, 10:49 AM   #12
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Original Poster
Rep: Reputation: 61
Some of that stuff is double-dutch to me at the moment, but I'll check your posts carefully tonight when I have more time to do some research too. I really hope Fedora has that USB_SERIAL thing included, as I'm in no shape to recompile my kernel at the moment.
 
Old 01-26-2008, 11:17 AM   #13
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Original Poster
Rep: Reputation: 61
Gnome-Pilot now seems to work with the USB cable after installing the latest kernel update. Works a charm. Perhaps I didn't have USB_SERIAL support or whatever on by default in the last one.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [Adding users to apache group] Security risk ? Wim Sturkenboom Linux - Security 4 11-12-2007 10:38 PM
Creating groups and adding users to that group tehfatal Linux - Newbie 2 04-01-2007 01:42 AM
Adding users to a group shipon_97 Linux - Newbie 2 06-04-2006 12:40 PM
group creation + adding users without root permission rblampain Programming 5 05-12-2006 08:55 PM
"adduser" not adding users to default group "users" PunkPT Slackware 2 09-23-2004 12:50 PM


All times are GMT -5. The time now is 03:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration