Click here to Skip to main content
15,885,757 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to get "native window" ? Pin
CPallini11-Feb-24 20:14
mveCPallini11-Feb-24 20:14 
GeneralRe: how to get "native window" ? Pin
Richard MacCutchan12-Feb-24 5:13
mveRichard MacCutchan12-Feb-24 5:13 
GeneralRe: how to get "native window" ? Pin
k505412-Feb-24 3:44
mvek505412-Feb-24 3:44 
GeneralRe: how to get "native window" ? Pin
k505412-Feb-24 7:14
mvek505412-Feb-24 7:14 
AnswerRe: how to get "native window" ? Pin
jschell13-Feb-24 4:45
jschell13-Feb-24 4:45 
GeneralRe: how to get "native window" ? Pin
Richard MacCutchan14-Feb-24 4:23
mveRichard MacCutchan14-Feb-24 4:23 
GeneralRe: how to get "native window" ? Pin
Dave Kreskowiak14-Feb-24 4:37
mveDave Kreskowiak14-Feb-24 4:37 
AnswerRe: How to implement sudo -S and -ps options Pin
k505414-Feb-24 12:57
mvek505414-Feb-24 12:57 
I'm sure've been over this before:
Terminal
$ id
uid=1002(k5054) gid=1002(k5054) groups=1002(k5054),27(sudo),100(users)

# create a new group for bluetooth users, call it btusers
$ sudo groupadd btusers

# add user k5054 to the btusers group
$ sudo usermod -a -G btusers k5054

# edit  /etc/sudoers.d/btusers to allow any user in btusers group
# to run hcitool without a password:
$ sudo visudo /etc/sudoers.d/btusers
  add line  %btusers ALL=(ALL) NOPASSWD:/usr/bin/hcitool

# log out and log back in again ...
$ sudo ps
[sudo] password for k5054: (CTL-D)
sudo: no password was provided
sudo: a password is required

# We're now part of the btusers group, so we don't need a password for hcitool
# id
uid=1002(k5054) gid=1002(k5054) groups=1002(k5054),27(sudo),100(users),1003(btusers)

# sudo hcitool without needing a password
$ sudo hcitool dev
Devices: 
If you need to be able to run other commands you can append them as a comma separated items to the sudoers file e.g.
%btusers ALL=(ALL) NOPASSWD:/usr/bin/hcitool,/usr/bin/hcidump
With knowledge comes great power. Use it wisely.

But this should really be int the linux programming forum, or maybe System Admin.
"A little song, a little dance, a little seltzer down your pants"
Chuckles the clown

GeneralRe: How to implement sudo -S and -ps options Pin
Richard MacCutchan15-Feb-24 21:02
mveRichard MacCutchan15-Feb-24 21:02 
GeneralRe: How to implement sudo -S and -ps options Pin
jschell15-Feb-24 11:41
jschell15-Feb-24 11:41 
AnswerRe: How to implement sudo -S and -ps options Pin
Richard MacCutchan14-Feb-24 21:46
mveRichard MacCutchan14-Feb-24 21:46 
Questionpurpose of parameter value of -1 ? Pin
Salvatore Terress10-Feb-24 5:14
Salvatore Terress10-Feb-24 5:14 
AnswerRe: purpose of parameter value of -1 ? Pin
k505410-Feb-24 5:21
mvek505410-Feb-24 5:21 
AnswerRe: purpose of parameter value of -1 ? PinPopular
Mircea Neacsu10-Feb-24 5:24
Mircea Neacsu10-Feb-24 5:24 
GeneralRe: purpose of parameter value of -1 ? Pin
Salvatore Terress10-Feb-24 6:14
Salvatore Terress10-Feb-24 6:14 
GeneralRe: purpose of parameter value of -1 ? Pin
Richard MacCutchan10-Feb-24 21:23
mveRichard MacCutchan10-Feb-24 21:23 
AnswerRe: purpose of parameter value of -1 ? Pin
CPallini10-Feb-24 22:32
mveCPallini10-Feb-24 22:32 
GeneralRe: purpose of parameter value of -1 ? Pin
Richard MacCutchan11-Feb-24 2:19
mveRichard MacCutchan11-Feb-24 2:19 
GeneralRe: purpose of parameter value of -1 ? Pin
CPallini11-Feb-24 4:12
mveCPallini11-Feb-24 4:12 
QuestionUsing /bin/sh "partially " works Pin
Salvatore Terress9-Feb-24 6:10
Salvatore Terress9-Feb-24 6:10 
AnswerRe: Using /bin/sh "partially " works Pin
Mircea Neacsu9-Feb-24 6:47
Mircea Neacsu9-Feb-24 6:47 
AnswerRe: Using /bin/sh "partially " works Pin
k50549-Feb-24 6:59
mvek50549-Feb-24 6:59 
AnswerRe: Using /bin/sh "partially " works Pin
jschell9-Feb-24 12:29
jschell9-Feb-24 12:29 
QuestionConcurrent linked list Pin
cod3Ninj47-Feb-24 23:40
cod3Ninj47-Feb-24 23:40 
AnswerRe: Concurrent linked list Pin
jschell9-Feb-24 12:32
jschell9-Feb-24 12:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.