LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-10-2006, 08:58 PM   #1
icejam
LQ Newbie
 
Registered: Apr 2006
Distribution: RHEL4, FC4
Posts: 7

Rep: Reputation: 0
Question problem adding user name with "\" into a group


Dear all,

My RHEL4 is having users like "SCI\john" and "LAW\susan".

Since I could change the ownership on directories by doing:
Code:
chown 'SCI\john' /home/SCI/john/
but if I want to assign users into groups, i faced a problem.

Code:
root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin,adm
adm:x:4:root,adm,daemon
private:x:502:'SCI\john','LAW\susan'
I tried both 'SCI\john' with and without the quotation marks but neither worked!

I would reall appreciate any advice.

Thanks
 
Old 05-10-2006, 09:48 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
I haven't tested this, but have you tried escaping the slash?
Code:
private:x:502:SCI\\john,LAW\\susan
Or, you might be able to use an underscore '_' instead of the slash.
 
Old 05-10-2006, 11:34 PM   #3
icejam
LQ Newbie
 
Registered: Apr 2006
Distribution: RHEL4, FC4
Posts: 7

Original Poster
Rep: Reputation: 0
Just tried it and it didn't work out...
I'm not allowed to escape the slash nor replace it by '_' because the user list sticks with samba which is a user list in the windows server directory.
sigh~~
 
Old 05-10-2006, 11:44 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
Ouch - sorry I couldn't help.
 
Old 05-11-2006, 11:25 PM   #5
icejam
LQ Newbie
 
Registered: Apr 2006
Distribution: RHEL4, FC4
Posts: 7

Original Poster
Rep: Reputation: 0
anyone knows how to handle that nasty back slash?.......
 
Old 05-12-2006, 02:03 AM   #6
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Usernames should only contain alphanumeric characters. Some systems will work fine with usernames that contain a dot or underscore. Anything else is looking for trouble as you have noticed.
 
  


Reply

Tags
group


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
Counter Strike 1.6 "not Adding Master Servers" hlds Problem danielscott Linux - Games 0 12-07-2005 11:28 AM
Adding a "Subscribe" button next to "Reply"? pnellesen LQ Suggestions & Feedback 2 06-21-2005 09:12 PM
strange group and user set to "573" in linux-2.4.27 tree structure xround Linux - General 2 10-12-2004 11:09 AM
"adduser" not adding users to default group "users" PunkPT Slackware 2 09-23-2004 11:50 AM
"User" & "System" CPU load difference JJX Linux - General 3 06-06-2004 01:42 AM


All times are GMT -5. The time now is 08:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration