> For the complete documentation index, see [llms.txt](https://frost.gitbook.io/iosbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://frost.gitbook.io/iosbook/jenkins-1/jenkins/jenkins-change-default-user-of-jenkins.md).

# \[Jenkins] 2. Change Default User Of Jenkins

(1. ) use bellow command to check your group and user

```
id
```

example:

![](https://1235580532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LHkCJzI8ydp2uTYXgFk%2F-LI1mtJSUrJ9DGFaN09U%2F-LI1nI6jsaq8IDc0RIDv%2Fimage.png?alt=media\&token=ac803e27-cfd8-4357-8694-682857cff0a2)

my user is otis, group is staff.

​

(2.) stop Jenkins

```
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist   
```

​

(3. ) open '/Library/LaunchDaemons/org.jenkins-ci.plist' file to modify Jenkins default group and user.

![modify "GroupName" and "UserName"](https://1235580532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LHkCJzI8ydp2uTYXgFk%2F-LI1mtJSUrJ9DGFaN09U%2F-LI1nOzlWzDSxuoHGWtQ%2Fimage.png?alt=media\&token=4cca2404-7961-44f7-afc5-fca05464397a)

​

(4.) Use below commands to change the permissions of org.jenkins-ci.plist file

```
sudo chown -R otis /var/log/jenkins  
```

```
sudo chown -R otis:staff /Users/Shared/Jenkins/ 
```

```
sudo chmod 600 /Library/LaunchDaemons/org.jenkins-ci.plist 
```

```
sudo chown root /Library/LaunchDaemons/org.jenkins-ci.plist                  
```

​

(5.) Restart Jenkins

```
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist             
```
