<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: mknod: must be super-user in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869137#M97971</link>
    <description>Hello, Rajeev,&lt;BR /&gt;&lt;BR /&gt;   Your C program is great! I learn a lot from it. But here I have another question.&lt;BR /&gt;&lt;BR /&gt;   Why do we have to set the permission to 4755 instead of 755?&lt;BR /&gt;   &lt;BR /&gt;   What does the 's' mean in 'rwsr-xr-x'? Why 'rwxr-xr-x' doesn't work?&lt;BR /&gt;&lt;BR /&gt;   Thanks a lot!</description>
    <pubDate>Mon, 23 Dec 2002 10:00:15 GMT</pubDate>
    <dc:creator>Lalo_Weng</dc:creator>
    <dc:date>2002-12-23T10:00:15Z</dc:date>
    <item>
      <title>mknod: must be super-user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869119#M97953</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;When I tried to execute the mknod command (under my id), the system is responding with the following message:&lt;BR /&gt;mknod: must be super-user &lt;BR /&gt;&lt;BR /&gt;I would like to assign the mknod command execution permissions to one of the user.&lt;BR /&gt;&lt;BR /&gt;Could you please tell me how to assign this access?&lt;BR /&gt;&lt;BR /&gt;I really appreciate your quick response.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Nikee&lt;BR /&gt;</description>
      <pubDate>Sun, 22 Dec 2002 07:24:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869119#M97953</guid>
      <dc:creator>Nikee Reddy</dc:creator>
      <dc:date>2002-12-22T07:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: mknod: must be super-user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869120#M97954</link>
      <description>Hi Nikee,&lt;BR /&gt;The easiest would be to write a C program, do setuid to root and then run the mknod command. Assign a sticky bit to this executable file and there u go.&lt;BR /&gt;&lt;BR /&gt;Rajeev</description>
      <pubDate>Sun, 22 Dec 2002 07:55:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869120#M97954</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2002-12-22T07:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: mknod: must be super-user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869121#M97955</link>
      <description>Hello Rajeev,&lt;BR /&gt;&lt;BR /&gt;Could you please provide me the step by step command details on this.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Nikee</description>
      <pubDate>Sun, 22 Dec 2002 08:03:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869121#M97955</guid>
      <dc:creator>Nikee Reddy</dc:creator>
      <dc:date>2002-12-22T08:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: mknod: must be super-user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869122#M97956</link>
      <description>Hi Nikee,&lt;BR /&gt;Copy this program as "mymknod.c" and compile it. after compilation give executable permissions 4755.&lt;BR /&gt;Means add sticky bit and the file should be owned by root:sys it should look like&lt;BR /&gt;-rwsr-xr-x   1 root       sys&lt;BR /&gt;&lt;BR /&gt;Here is the source&lt;BR /&gt;#include &lt;STDIO.H&gt;                         &lt;BR /&gt;#include &lt;STRING.H&gt;                        &lt;BR /&gt;#include &lt;UNISTD.H&gt;                        &lt;BR /&gt;#include &lt;STDLIB.H&gt;                        &lt;BR /&gt;int uid;                                   &lt;BR /&gt;main(argc, argv)                           &lt;BR /&gt;int argc;                                  &lt;BR /&gt;char *argv[];                              &lt;BR /&gt;{                                          &lt;BR /&gt;char *command=(char *)malloc(2048);        &lt;BR /&gt;setuid(0);                                 &lt;BR /&gt;strcpy(command,"/usr/sbin/mknod ");        &lt;BR /&gt;strcat(command,argv[1]);                   &lt;BR /&gt;strcat(command," ");                       &lt;BR /&gt;strcat(command,argv[2]);                   &lt;BR /&gt;strcat(command," ");                       &lt;BR /&gt;strcat(command,argv[3]);                   &lt;BR /&gt;strcat(command," ");                       &lt;BR /&gt;strcat(command,argv[4]);                   &lt;BR /&gt;if ( system(command) !=0 ) {               &lt;BR /&gt;  printf("1:The mknod command failed\n");  &lt;BR /&gt;  exit(1);                                 &lt;BR /&gt;}                                          &lt;BR /&gt;}                                          &lt;BR /&gt;let me know how it goes, as i made this program specially for you.&lt;BR /&gt;&lt;BR /&gt;Rajeev&lt;/STDLIB.H&gt;&lt;/UNISTD.H&gt;&lt;/STRING.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Sun, 22 Dec 2002 09:00:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869122#M97956</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2002-12-22T09:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: mknod: must be super-user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869123#M97957</link>
      <description>Hello Rajeev,&lt;BR /&gt;&lt;BR /&gt;Thanks for the effot. when I tried to run the mymknod.c, the system is responding with the following error message:&lt;BR /&gt;&lt;BR /&gt;mymknod.c[5]: int:  not found.&lt;BR /&gt;mymknod.c[6]: Syntax error at line 6 : `(' is not expected.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Nikee</description>
      <pubDate>Mon, 23 Dec 2002 01:22:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869123#M97957</guid>
      <dc:creator>Nikee Reddy</dc:creator>
      <dc:date>2002-12-23T01:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: mknod: must be super-user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869124#M97958</link>
      <description>Did you compile it before you tried to run it?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Dec 2002 02:38:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869124#M97958</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-12-23T02:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: mknod: must be super-user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869125#M97959</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I compile the code using the following command:&lt;BR /&gt;&lt;BR /&gt;root@pluto:/root# cc mymknod.c&lt;BR /&gt;&lt;BR /&gt;If this is not the write way to compile the code, please let me know...&lt;BR /&gt;&lt;BR /&gt;Thank You,&lt;BR /&gt;Nikee</description>
      <pubDate>Mon, 23 Dec 2002 02:40:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869125#M97959</guid>
      <dc:creator>Nikee Reddy</dc:creator>
      <dc:date>2002-12-23T02:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: mknod: must be super-user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869126#M97960</link>
      <description>You could install 'sudo' to do this. get your System Administrator to assist you. You can get it from here, ready for installation.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.6/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.6/&lt;/A&gt;</description>
      <pubDate>Mon, 23 Dec 2002 02:41:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869126#M97960</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-12-23T02:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: mknod: must be super-user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869127#M97961</link>
      <description>Hello Michael,&lt;BR /&gt;&lt;BR /&gt;The sudo is already installed on my system. And I have also assigned my user id in the file name: /etc/sudoers&lt;BR /&gt;reddys ALL=/usr/sbin/mknod&lt;BR /&gt;&lt;BR /&gt;(where reddys is the user id)&lt;BR /&gt;&lt;BR /&gt;Please let me know what should I do now.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Nikee&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Dec 2002 02:49:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869127#M97961</guid>
      <dc:creator>Nikee Reddy</dc:creator>
      <dc:date>2002-12-23T02:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: mknod: must be super-user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869128#M97962</link>
      <description>I got you. You are trying to execute the file as it is. It is a C program which you need to compile. Just do the following.&lt;BR /&gt;1. cc -o mymknod mymknod.c (this will compile and make a file called mymynod)&lt;BR /&gt;2.make the file permission as -rwsr-xr-x 1 root sys&lt;BR /&gt;by doing chmod 4755 mymknod&lt;BR /&gt; and then run mymknod &lt;BR /&gt;it should work.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rajeev</description>
      <pubDate>Mon, 23 Dec 2002 03:02:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869128#M97962</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2002-12-23T03:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: mknod: must be super-user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869129#M97963</link>
      <description>Hello Rajeev,&lt;BR /&gt;&lt;BR /&gt;I have compiled and assigned the permissions successfully according to your specification.&lt;BR /&gt;&lt;BR /&gt;Basically the user wants to execute the mknod name p command:&lt;BR /&gt;&lt;BR /&gt;pluto:oradv2 /root/mymknod  oraout p&lt;BR /&gt;&lt;BR /&gt;mknod: arg count&lt;BR /&gt;usage: mknod name b|c major minor&lt;BR /&gt;       mknod name p&lt;BR /&gt;1:The mknod command failed&lt;BR /&gt;&lt;BR /&gt;I am receiving the above error when I ran the command.&lt;BR /&gt;What am I doing wrong here?&lt;BR /&gt;&lt;BR /&gt;Thank You,&lt;BR /&gt;Nikee&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Dec 2002 03:15:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869129#M97963</guid>
      <dc:creator>Nikee Reddy</dc:creator>
      <dc:date>2002-12-23T03:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: mknod: must be super-user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869130#M97964</link>
      <description>Here is the sudo syntax. Make sure that you use the 'visudo' program to make cny changes.&lt;BR /&gt;&lt;BR /&gt;Try setting up your /etc/sudoers file like this:&lt;BR /&gt;&lt;BR /&gt;User_Alias MKNOD = reddys&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias MKNODEX = /usr/sbin/mknod&lt;BR /&gt;&lt;BR /&gt;MKNOD ALL=MKNODEX</description>
      <pubDate>Mon, 23 Dec 2002 03:46:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869130#M97964</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-12-23T03:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: mknod: must be super-user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869131#M97965</link>
      <description>No need to do any of this. HP-UX has a command available to any user: mkfifo&lt;BR /&gt;&lt;BR /&gt;The man page shows:&lt;BR /&gt;&lt;BR /&gt;mkfifo filename&lt;BR /&gt;&lt;BR /&gt;is what you need. There are a couple of options but mkfifo is a section 1 command (that means anyone can use the command) whereas mknod is a section 1m command (reserved only for root). Rather than use set-UID or sudo, just use mkfifo. See also mkfifo(3c). A section number (ie, 1 or 1m or 3c, etc) refers to the Unix 'Brick' or documentation book. mknod has an entry in section 2 (a system call), section 1m (root command) and section 5 (header information). To see a particular man page, insert the section number as in: man 5 mknod</description>
      <pubDate>Mon, 23 Dec 2002 03:48:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869131#M97965</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-12-23T03:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: mknod: must be super-user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869132#M97966</link>
      <description>Just a few more changes to the program please. The last program was only taking care of c|b here is the full program.&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STRING.H&gt;&lt;BR /&gt;#include &lt;UNISTD.H&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;int uid;&lt;BR /&gt;main(argc, argv)&lt;BR /&gt;int argc;&lt;BR /&gt;char *argv[];&lt;BR /&gt;{&lt;BR /&gt;char *command=(char *)malloc(2048);&lt;BR /&gt;if ((argc != 5) &amp;amp;&amp;amp; (argc != 3)){&lt;BR /&gt;        printf("Incorrect usage\n");&lt;BR /&gt;        exit(1);&lt;BR /&gt;}&lt;BR /&gt;setuid(0);&lt;BR /&gt;strcpy(command,"/usr/sbin/mknod ");&lt;BR /&gt;if ( argc == 5 ){&lt;BR /&gt;strcat(command,argv[1]);&lt;BR /&gt;strcat(command," ");&lt;BR /&gt;strcat(command,argv[2]);&lt;BR /&gt;strcat(command," ");&lt;BR /&gt;strcat(command,argv[3]);&lt;BR /&gt;strcat(command," ");&lt;BR /&gt;strcat(command,argv[4]);&lt;BR /&gt;if ( system(command) !=0 ) {&lt;BR /&gt;  printf("1:The mknod command failed\n");&lt;BR /&gt;  exit(1);&lt;BR /&gt;}&lt;BR /&gt;exit(0);&lt;BR /&gt;}&lt;BR /&gt;if ( argc == 3 ){&lt;BR /&gt;strcat(command,argv[1]);&lt;BR /&gt;strcat(command," ");&lt;BR /&gt;strcat(command,argv[2]);&lt;BR /&gt;if ( system(command) !=0 ) {&lt;BR /&gt;  printf("1:The mknod command failed\n");&lt;BR /&gt;  exit(1);&lt;BR /&gt;}&lt;BR /&gt;exit(0);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Just compile and use the same old procedure it should definately work of let me know again.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rajeev&lt;/STDLIB.H&gt;&lt;/UNISTD.H&gt;&lt;/STRING.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Mon, 23 Dec 2002 03:49:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869132#M97966</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2002-12-23T03:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: mknod: must be super-user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869133#M97967</link>
      <description>Thats right bill,&lt;BR /&gt;mkfifo is only for named pipes. But my program is more generalised and works for creating block and character devices too.&lt;BR /&gt;&lt;BR /&gt;Rajeev</description>
      <pubDate>Mon, 23 Dec 2002 04:01:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869133#M97967</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2002-12-23T04:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: mknod: must be super-user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869134#M97968</link>
      <description>Hello All,&lt;BR /&gt;&lt;BR /&gt;Thanks for the help and suggestions.&lt;BR /&gt;&lt;BR /&gt;Rajeev, thanks for the code and it works.&lt;BR /&gt;&lt;BR /&gt;Let me explain to all of you what I am trying to do here:&lt;BR /&gt;&lt;BR /&gt;We are running SAP &amp;amp; Oracle on the HP 11.0 OS.&lt;BR /&gt;&lt;BR /&gt;Basically SAP has a tool called SAPDBA (like SAM), which performs database reorganization and many more dba functions. Here I am trying to achieve the data export from the database in to multiple dump files due to the file size limitation i.e. 2GB.&lt;BR /&gt;&lt;BR /&gt;SAPDBA tries to chop the database data export file in to multiple files using mknod command. SAP has hard coded this functionality in the SAPDBA.exe files.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Nikee</description>
      <pubDate>Mon, 23 Dec 2002 04:24:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869134#M97968</guid>
      <dc:creator>Nikee Reddy</dc:creator>
      <dc:date>2002-12-23T04:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: mknod: must be super-user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869135#M97969</link>
      <description>Hello Rajeev,&lt;BR /&gt;&lt;BR /&gt;pluto:oradv2&amp;gt; mymknod oradmp p&lt;BR /&gt;&lt;BR /&gt;The above command is creating the file under root:dba permissions.&lt;BR /&gt;&lt;BR /&gt;prw-r--r--   1 root dba  0 Dec 22 23:41 oradmp&lt;BR /&gt;&lt;BR /&gt;Is it possible to create a file under oradv2:dba ownership instead of root:dba? &lt;BR /&gt;&lt;BR /&gt;The script is failing due to permissions problem.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Nikee&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Dec 2002 04:52:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869135#M97969</guid>
      <dc:creator>Nikee Reddy</dc:creator>
      <dc:date>2002-12-23T04:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: mknod: must be super-user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869136#M97970</link>
      <description>Here you are with a new program. Just get the uid and gid and do chown. Here you are, compile and then run is as before.&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STRING.H&gt;&lt;BR /&gt;#include &lt;UNISTD.H&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;uid_t uid;&lt;BR /&gt;gid_t gid;&lt;BR /&gt;main(argc, argv)&lt;BR /&gt;int argc;&lt;BR /&gt;char *argv[];&lt;BR /&gt;{&lt;BR /&gt;char *command=(char *)malloc(2048);&lt;BR /&gt;if ((argc != 5) &amp;amp;&amp;amp; (argc != 3)){&lt;BR /&gt;        printf("Incorrect usage\n");&lt;BR /&gt;        exit(1);&lt;BR /&gt;}&lt;BR /&gt;uid = getuid();&lt;BR /&gt;gid = getgid();&lt;BR /&gt;setuid(0);&lt;BR /&gt;strcpy(command,"/usr/sbin/mknod ");&lt;BR /&gt;if ( argc == 5 ){&lt;BR /&gt;strcat(command,argv[1]);&lt;BR /&gt;strcat(command," ");&lt;BR /&gt;strcat(command,argv[2]);&lt;BR /&gt;strcat(command," ");&lt;BR /&gt;strcat(command,argv[3]);&lt;BR /&gt;strcat(command," ");&lt;BR /&gt;strcat(command,argv[4]);&lt;BR /&gt;if ( system(command) !=0 ) {&lt;BR /&gt;  printf("1:The mknod command failed\n");&lt;BR /&gt;  exit(1);&lt;BR /&gt;}&lt;BR /&gt;chown(argv[1], uid, gid);&lt;BR /&gt;exit(0);&lt;BR /&gt;}&lt;BR /&gt;if ( argc == 3 ){&lt;BR /&gt;strcat(command,argv[1]);&lt;BR /&gt;strcat(command," ");&lt;BR /&gt;strcat(command,argv[2]);&lt;BR /&gt;if ( system(command) !=0 ) {&lt;BR /&gt;  printf("1:The mknod command failed\n");&lt;BR /&gt;  exit(1);&lt;BR /&gt;}&lt;BR /&gt;chown(argv[1], uid, gid);&lt;BR /&gt;exit(0);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rajeev&lt;/STDLIB.H&gt;&lt;/UNISTD.H&gt;&lt;/STRING.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Mon, 23 Dec 2002 06:13:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869136#M97970</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2002-12-23T06:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: mknod: must be super-user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869137#M97971</link>
      <description>Hello, Rajeev,&lt;BR /&gt;&lt;BR /&gt;   Your C program is great! I learn a lot from it. But here I have another question.&lt;BR /&gt;&lt;BR /&gt;   Why do we have to set the permission to 4755 instead of 755?&lt;BR /&gt;   &lt;BR /&gt;   What does the 's' mean in 'rwsr-xr-x'? Why 'rwxr-xr-x' doesn't work?&lt;BR /&gt;&lt;BR /&gt;   Thanks a lot!</description>
      <pubDate>Mon, 23 Dec 2002 10:00:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869137#M97971</guid>
      <dc:creator>Lalo_Weng</dc:creator>
      <dc:date>2002-12-23T10:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: mknod: must be super-user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869138#M97972</link>
      <description>You'll learn a lot from the man page for chmod. The setUID bit is what allows a program to run as a different user. For this program, you are running as the oracle user with limited capabilities bt the program runs as root. This is why the owner of the resultant file is root by default.&lt;BR /&gt;&lt;BR /&gt;setUID is a standard technique for many Unix commands but as you might expect, it creates the possibility of serious security risks, especially if the setUID is applied to a simple shell script. sudo is a much better solution as the actuions taken by sudo are logged (and limited by the config file).&lt;BR /&gt;&lt;BR /&gt;It is strongly recommended that the nosuid option be added to *every* mountpoint where ordinary users have write access (such as /tmp, /var and /home). This prevents setUID scripts and/or programs in those locations from running.</description>
      <pubDate>Mon, 23 Dec 2002 14:00:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mknod-must-be-super-user/m-p/2869138#M97972</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-12-23T14:00:22Z</dc:date>
    </item>
  </channel>
</rss>

