Hi , Am new to shell scripting. I wanted to change user using shell script and i just dont know to do it. Thanks!,

su or sudo

Read the man page for su.

Both of these require superuser (root) access.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.